Skip to content

Commit 0874c5a

Browse files
committed
chore: compatibility with PHP 8.5
1 parent e69ea17 commit 0874c5a

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
14+
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1515
name: PHP ${{ matrix.php-versions }}
1616

1717
steps:
@@ -75,7 +75,7 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
bdf-queue-versions: ['1.4.0', '1.5.0']
78+
bdf-queue-versions: ['1.4.0', '1.5.0', '1.6.0']
7979
name: Compatibility with bdf-queue v${{ matrix.bdf-queue-versions }}
8080

8181
steps:

Tests/BdfQueueBundleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function testFailer()
213213
$command = $this->getCommand($console, 'queue:failer:delete');
214214

215215
$r = new \ReflectionProperty(AbstractFailerCommand::class, 'repository');
216-
$r->setAccessible(true);
216+
PHP_VERSION_ID >= 80100 or $r->setAccessible(true);
217217

218218
/** @var FailedJobStorageInterface $failer */
219219
$failer = $r->getValue($command);
@@ -233,7 +233,7 @@ public function testCustomFailer()
233233
$command = $this->getCommand($console, 'queue:failer:delete');
234234

235235
$r = new \ReflectionProperty(AbstractFailerCommand::class, 'repository');
236-
$r->setAccessible(true);
236+
PHP_VERSION_ID >= 80100 or $r->setAccessible(true);
237237

238238
/** @var FailedJobStorageInterface $failer */
239239
$failer = $r->getValue($command);

Tests/WithPrimeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testPrimeFailer()
4343
}
4444

4545
$r = new \ReflectionProperty(AbstractFailerCommand::class, 'repository');
46-
$r->setAccessible(true);
46+
PHP_VERSION_ID >= 80100 or $r->setAccessible(true);
4747

4848
/** @var FailedJobStorageInterface $failer */
4949
$failer = $r->getValue($command);
@@ -108,7 +108,7 @@ private function isPrimeFailer($storage): bool
108108

109109
if ($storage instanceof FailedJobRepositoryAdapter) {
110110
$r = new \ReflectionProperty(FailedJobRepositoryAdapter::class, 'storage');
111-
$r->setAccessible(true);
111+
PHP_VERSION_ID >= 80100 or $r->setAccessible(true);
112112

113113
return $r->getValue($storage) instanceof DbFailedJobStorage;
114114
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"minimum-stability": "dev",
1313
"require": {
14-
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
14+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
1515
"b2pweb/bdf-queue": "~1.4",
1616
"symfony/config": "^6.0|~7.0",
1717
"symfony/dependency-injection": "^6.0|~7.0",

0 commit comments

Comments
 (0)