Skip to content

Commit ea5d5cd

Browse files
update to 6.x
1 parent f1ca532 commit ea5d5cd

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
php:
14-
- '7.4'
15-
- '8.0'
16-
- '8.1'
1714
- '8.2'
15+
- '8.3'
16+
- '8.4'
1817
composer:
1918
- ''
2019
- '--prefer-lowest'

EventDispatcher/LazyEventDispatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,23 @@ public function removeSubscriber(EventSubscriberInterface $subscriber)
8080
/**
8181
* {@inheritdoc}
8282
*/
83-
public function getListeners($eventName = null)
83+
public function getListeners($eventName = null): array
8484
{
8585
return $this->getEventDispatcher()->getListeners($eventName);
8686
}
8787

8888
/**
8989
* {@inheritdoc}
9090
*/
91-
public function hasListeners($eventName = null)
91+
public function hasListeners($eventName = null): bool
9292
{
9393
return $this->getEventDispatcher()->hasListeners($eventName);
9494
}
9595

9696
/**
9797
* {@inheritdoc}
9898
*/
99-
public function getListenerPriority($eventName, $listener)
99+
public function getListenerPriority($eventName, $listener): ?int
100100
{
101101
if (!method_exists($this->getEventDispatcher(), 'getListenerPriority')) {
102102
throw new \BadMethodCallException('getListenerPriority() is not implemented');

Tests/Fixtures/app/config/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ framework:
44
test: ~
55
default_locale: en
66
session:
7-
storage_id: session.storage.mock_file
7+
storage_factory_id: session.storage.factory.mock_file
88
profiler: { only_exceptions: false }
99

1010
services:

Tests/WebTestCase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Symfony\Component\DependencyInjection\ContainerInterface;
77
use Symfony\Component\Filesystem\Filesystem;
88
use Symfony\Component\HttpKernel\Kernel;
9+
use Symfony\Component\HttpKernel\KernelInterface;
910

1011
abstract class WebTestCase extends BaseWebTestCase
1112
{
@@ -29,14 +30,14 @@ protected static function getContainer(array $options = array()): ContainerInter
2930
return static::$kernel->getContainer();
3031
}
3132

32-
protected static function getKernelClass()
33+
protected static function getKernelClass(): string
3334
{
3435
require_once __DIR__.'/Fixtures/app/AppKernel.php';
3536

3637
return 'Bazinga\Bundle\PropelEventDispatcherBundle\Tests\Functional\AppKernel';
3738
}
3839

39-
protected static function createKernel(array $options = array())
40+
protected static function createKernel(array $options = array()): KernelInterface
4041
{
4142
$class = self::getKernelClass();
4243

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"description": "Integrates the Propel EventDispatcherBehavior into Symfony2.",
44
"license": "MIT",
55
"require": {
6-
"dayspring-tech/propel-eventdispatcher-behavior": "5.x-dev"
6+
"dayspring-tech/propel-eventdispatcher-behavior": "6.x-dev"
77
},
88
"require-dev": {
9-
"symfony/framework-bundle": "^4.3|^5.0",
10-
"symfony/yaml": "^4.0|^5.0",
9+
"php": ">=8.2",
10+
"symfony/framework-bundle": "^5.4|^6.0",
11+
"symfony/yaml": "^5.4|^6.0",
1112
"phpunit/phpunit": "~8.5.33|^9.0"
1213
},
1314
"authors": [

0 commit comments

Comments
 (0)