diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 962261ee6..206722de2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1'] # Note: This workflow requires only the LATEST version of PHP + php: ['8.2'] # Note: This workflow requires only the LATEST version of PHP os: [ubuntu-latest] steps: @@ -70,7 +70,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1'] # Note: This workflow requires only the LATEST version of PHP + php: ['8.2'] # Note: This workflow requires only the LATEST version of PHP os: [ubuntu-latest] steps: @@ -125,7 +125,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1'] # Note: This workflow requires only the LATEST version of PHP + php: ['8.2'] # Note: This workflow requires only the LATEST version of PHP os: [ubuntu-latest] steps: @@ -180,7 +180,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1'] + php: ['8.1', '8.2'] os: [ubuntu-latest] stability: [prefer-lowest, prefer-stable] diff --git a/src/Console/src/Configurator/Attribute/Parser.php b/src/Console/src/Configurator/Attribute/Parser.php index e10004ac6..797b9d2ee 100644 --- a/src/Console/src/Configurator/Attribute/Parser.php +++ b/src/Console/src/Configurator/Attribute/Parser.php @@ -205,7 +205,7 @@ private function getPropertyType(\ReflectionProperty $property): \ReflectionName if ($type instanceof \ReflectionUnionType) { foreach ($type->getTypes() as $type) { - if ($type->isBuiltin()) { + if ($type instanceof \ReflectionNamedType && $type->isBuiltin()) { return $type; } } diff --git a/src/Queue/tests/Driver/NullDriverTest.php b/src/Queue/tests/Driver/NullDriverTest.php index a740fc3de..f85e53f00 100644 --- a/src/Queue/tests/Driver/NullDriverTest.php +++ b/src/Queue/tests/Driver/NullDriverTest.php @@ -10,6 +10,8 @@ final class NullDriverTest extends TestCase { + private NullDriver $queue; + protected function setUp(): void { parent::setUp(); diff --git a/src/Queue/tests/QueueManagerTest.php b/src/Queue/tests/QueueManagerTest.php index 27148803c..869e432be 100644 --- a/src/Queue/tests/QueueManagerTest.php +++ b/src/Queue/tests/QueueManagerTest.php @@ -16,6 +16,7 @@ final class QueueManagerTest extends TestCase { private m\MockInterface|FactoryInterface $factory; + private QueueManager $manager; protected function setUp(): void {