diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 904a4a3..47a302f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -27,5 +27,5 @@ jobs: name: "PHPUnit" uses: "doctrine/.github/.github/workflows/continuous-integration.yml@3.0.0" with: - php-versions: '["7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]' + php-versions: '["7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]' composer-options: '--ignore-platform-req=php+' diff --git a/tests/Doctrine/Deprecations/DeprecationTest.php b/tests/Doctrine/Deprecations/DeprecationTest.php index 597027d..e54b0dc 100644 --- a/tests/Doctrine/Deprecations/DeprecationTest.php +++ b/tests/Doctrine/Deprecations/DeprecationTest.php @@ -28,11 +28,11 @@ public function setUp(): void // reset the global state of Deprecation class across tests $reflectionProperty = new ReflectionProperty(Deprecation::class, 'ignoredPackages'); $reflectionProperty->setAccessible(true); - $reflectionProperty->setValue([]); + $reflectionProperty->setValue(null, []); $reflectionProperty = new ReflectionProperty(Deprecation::class, 'triggeredDeprecations'); $reflectionProperty->setAccessible(true); - $reflectionProperty->setValue([]); + $reflectionProperty->setValue(null, []); Deprecation::disable(); @@ -277,12 +277,12 @@ public function testDeprecationTrackByEnv(): void { $reflectionProperty = new ReflectionProperty(Deprecation::class, 'type'); $reflectionProperty->setAccessible(true); - $reflectionProperty->setValue(null); + $reflectionProperty->setValue(null, null); Deprecation::trigger('Foo', 'link', 'message'); $this->assertSame(0, Deprecation::getUniqueTriggeredDeprecationsCount()); - $reflectionProperty->setValue(null); + $reflectionProperty->setValue(null, null); $_SERVER['DOCTRINE_DEPRECATIONS'] = 'track'; Deprecation::trigger('Foo', __METHOD__, 'message'); @@ -293,7 +293,7 @@ public function testDeprecationTriggerByEnv(): void { $reflectionProperty = new ReflectionProperty(Deprecation::class, 'type'); $reflectionProperty->setAccessible(true); - $reflectionProperty->setValue(null); + $reflectionProperty->setValue(null, null); $_ENV['DOCTRINE_DEPRECATIONS'] = 'trigger'; $this->expectErrorHandler(