Skip to content

Commit d359cf2

Browse files
authored
Symfony 6 support (#18)
1 parent 486573d commit d359cf2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Tests/Services/Fixtures/MySubscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(LifecycleEventsDispatcher $dispatcher, $annotation,
2626
/**
2727
* @inheritdoc
2828
*/
29-
public static function getSubscribedEvents()
29+
public static function getSubscribedEvents(): array
3030
{
3131
return [
3232
LifecycleEvents::CREATED => 'onCalled',
@@ -45,4 +45,4 @@ public function onCalled()
4545
$this->dispatcher->dispatchEvents();
4646
}
4747
}
48-
}
48+
}

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
],
1414
"require": {
1515
"php": ">=7.4|>=8.0",
16-
"symfony/http-kernel": "^4.4|^5.0",
17-
"symfony/config": "^4.4|^5.0",
18-
"symfony/dependency-injection": "^4.4|^5.0",
19-
"symfony/yaml": "^4.4|^5.0",
20-
"symfony/event-dispatcher": "^4.4|^5.0",
16+
"symfony/http-kernel": "^4.4|^5.0|^6.0",
17+
"symfony/config": "^4.4|^5.0|^6.0",
18+
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
19+
"symfony/yaml": "^4.4|^5.0|^6.0",
20+
"symfony/event-dispatcher": "^4.4|^5.0|^6.0",
2121
"doctrine/orm": "^2.0",
22-
"doctrine/persistence": "^1.3|^2.0",
22+
"doctrine/persistence": "^1.3|^2.0|^3.0",
2323
"doctrine/annotations": "^1.13"
2424
},
2525
"require-dev": {

0 commit comments

Comments
 (0)