Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ jobs:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
composer:
- ''
- '--prefer-lowest'
Expand Down
6 changes: 3 additions & 3 deletions EventDispatcher/LazyEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ public function removeSubscriber(EventSubscriberInterface $subscriber)
/**
* {@inheritdoc}
*/
public function getListeners($eventName = null)
public function getListeners($eventName = null): array
{
return $this->getEventDispatcher()->getListeners($eventName);
}

/**
* {@inheritdoc}
*/
public function hasListeners($eventName = null)
public function hasListeners($eventName = null): bool
{
return $this->getEventDispatcher()->hasListeners($eventName);
}

/**
* {@inheritdoc}
*/
public function getListenerPriority($eventName, $listener)
public function getListenerPriority($eventName, $listener): ?int
{
if (!method_exists($this->getEventDispatcher(), 'getListenerPriority')) {
throw new \BadMethodCallException('getListenerPriority() is not implemented');
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/app/config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ framework:
test: ~
default_locale: en
session:
storage_id: session.storage.mock_file
storage_factory_id: session.storage.factory.mock_file
profiler: { only_exceptions: false }

services:
Expand Down
5 changes: 3 additions & 2 deletions Tests/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\HttpKernel\KernelInterface;

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

protected static function getKernelClass()
protected static function getKernelClass(): string
{
require_once __DIR__.'/Fixtures/app/AppKernel.php';

return 'Bazinga\Bundle\PropelEventDispatcherBundle\Tests\Functional\AppKernel';
}

protected static function createKernel(array $options = array())
protected static function createKernel(array $options = array()): KernelInterface
{
$class = self::getKernelClass();

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"description": "Integrates the Propel EventDispatcherBehavior into Symfony2.",
"license": "MIT",
"require": {
"dayspring-tech/propel-eventdispatcher-behavior": "5.x-dev"
"dayspring-tech/propel-eventdispatcher-behavior": "^6.0"
},
"require-dev": {
"symfony/framework-bundle": "^4.3|^5.0",
"symfony/yaml": "^4.0|^5.0",
"php": ">=8.2",
"symfony/framework-bundle": "^5.4|^6.0",
"symfony/yaml": "^5.4|^6.0",
"phpunit/phpunit": "~8.5.33|^9.0"
},
"authors": [
Expand Down
Loading