Skip to content

Commit

Permalink
Add php 8.2 to gh workflows (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Apr 27, 2023
1 parent 6674409 commit a17d20d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion src/Console/src/Configurator/Attribute/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/Queue/tests/Driver/NullDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

final class NullDriverTest extends TestCase
{
private NullDriver $queue;

protected function setUp(): void
{
parent::setUp();
Expand Down
1 change: 1 addition & 0 deletions src/Queue/tests/QueueManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
final class QueueManagerTest extends TestCase
{
private m\MockInterface|FactoryInterface $factory;
private QueueManager $manager;

protected function setUp(): void
{
Expand Down

0 comments on commit a17d20d

Please sign in to comment.