From 35d96b887317e9271c8954b8fb0caf473a9a5bbc Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 8 Nov 2023 09:14:24 +1100 Subject: [PATCH] dev/core#4072 Fix Dynamic property in CiviTestListener --- Civi/Test/CiviTestListener.php | 5 +++++ Civi/Test/Legacy/CiviTestListener.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Civi/Test/CiviTestListener.php b/Civi/Test/CiviTestListener.php index fbd6fd8878..2fa0627d9f 100644 --- a/Civi/Test/CiviTestListener.php +++ b/Civi/Test/CiviTestListener.php @@ -38,6 +38,11 @@ else { */ private $tx; + /** + * @var \CRM_Core_TemporaryErrorScope|null + */ + public $errorScope; + public function startTestSuite(\PHPUnit\Framework\TestSuite $suite) { $byInterface = $this->indexTestsByInterface($suite->tests()); $this->validateGroups($byInterface); diff --git a/Civi/Test/Legacy/CiviTestListener.php b/Civi/Test/Legacy/CiviTestListener.php index 4889da722b..f1cbbe0dcf 100644 --- a/Civi/Test/Legacy/CiviTestListener.php +++ b/Civi/Test/Legacy/CiviTestListener.php @@ -28,6 +28,11 @@ class CiviTestListener extends \PHPUnit_Framework_BaseTestListener { */ private $tx; + /** + * @var \CRM_Core_TemporaryErrorScope|null + */ + public $errorScope; + public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) { $byInterface = $this->indexTestsByInterface($suite->tests()); $this->validateGroups($byInterface); -- 2.25.1