diff --git a/.github/workflows/php-package-ci.yml b/.github/workflows/php-package-ci.yml index 53ba0e4..c1bc658 100644 --- a/.github/workflows/php-package-ci.yml +++ b/.github/workflows/php-package-ci.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ 7.4, 8.0 ] + php: [ 7.4, 8.0, 8.1 ] steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index 4b1c6a4..a7df8d7 100644 --- a/composer.json +++ b/composer.json @@ -22,15 +22,15 @@ "nette/routing": "^3.0.0", "tracy/tracy": "^2.8 || ^3.0", "nette/utils": "^3.1", - "symfony/console": "~2.3 || ^3.0 || < 4.3" + "symfony/console": "~2.3 || ^3.0 || < 4.5" }, "require-dev": { "nette/application": "^3.0", "nette/bootstrap": "^3.0", "nette/caching": "^3.0", "nette/http": "^3.0", - "kdyby/events": "dev-patch-1 as 3.2.99", - "symfony/event-dispatcher": "~2.3 || ^3.0 || < 4.3", + "kdyby/events": "^5.0", + "symfony/event-dispatcher": "~2.3 || ^3.0 || < 4.5", "nette/tester": "^2.2", "phpstan/phpstan": "^0.12.88", @@ -58,15 +58,15 @@ "tests/KdybyTests/" ] }, - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/dakorpar/Events.git" - } - ], "extra": { "branch-alias": { "dev-master": "2.8-dev" } + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true, + "typo3/class-alias-loader": true + } } } diff --git a/tests/KdybyTests/Console/data/ConsoleListener.php b/tests/KdybyTests/Console/data/ConsoleListener.php index 3bbcc8c..6ecf4c4 100644 --- a/tests/KdybyTests/Console/data/ConsoleListener.php +++ b/tests/KdybyTests/Console/data/ConsoleListener.php @@ -24,8 +24,8 @@ class ConsoleListener implements \Kdyby\Events\Subscriber public function getSubscribedEvents() { return [ - ConsoleEvents::COMMAND, - ConsoleEvents::TERMINATE, + ConsoleEvents::COMMAND => 'command', + ConsoleEvents::TERMINATE => 'terminate', ]; }