Skip to content

Commit bbb56f7

Browse files
committed
Fixed deprecation for PHP 8.4, Drop PHP <8.0 support, Drop Symfony <6.0 support
1 parent e81cbc9 commit bbb56f7

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@ jobs:
1515
strategy:
1616
matrix:
1717
include:
18-
- php-version: 7.4
19-
symfony-version: 4.4.*
20-
sonata-version: ^4.0
21-
- php-version: 8.0
22-
symfony-version: 5.4.*
23-
sonata-version: ^4.0
2418
- php-version: 8.1
25-
symfony-version: 6.1.*
19+
symfony-version: 6.4.*
2620
sonata-version: ^4.0
2721
- php-version: 8.4
2822
symfony-version: 7.3.*

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
}
2626
},
2727
"require": {
28-
"php": "^7.4|^8.0",
28+
"php": "^8.0",
2929
"sonata-project/admin-bundle": "^4.0",
30-
"symfony/workflow": "^4.4|^5.0|^6.0|^7.0"
30+
"symfony/workflow": "^6.0|^7.0"
3131
},
3232
"require-dev": {
3333
"phpunit/phpunit": "^9.5",

src/Admin/Extension/WorkflowExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getAccessMapping(AdminInterface $admin): array
107107
/**
108108
* @throws InvalidArgumentException
109109
*/
110-
protected function getWorkflow(object $subject, string $workflowName = null): WorkflowInterface
110+
protected function getWorkflow(object $subject, string|null $workflowName = null): WorkflowInterface
111111
{
112112
return $this->registry->get($subject, $workflowName);
113113
}

0 commit comments

Comments
 (0)