Skip to content

Commit

Permalink
Merge pull request #38 from BedrockStreaming/chore/compatibility_symfo6
Browse files Browse the repository at this point in the history
chore: enable symfony 6 compatibility
  • Loading branch information
sdechomets authored Oct 11, 2022
2 parents a168220 + 7fbc4ba commit ce99584
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
symfony-version: ['^4.4', '^5.0']
php-version: ['8.1']
symfony-version: ['^6.1']
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
Expand Down
14 changes: 5 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
}
],
"require" : {
"php" : ">=7.2",
"php" : ">=8.1",
"ext-pcntl" : "*",
"psr/event-dispatcher": "^1.0",
"symfony/console" : "~4.4 || ~5.0",
"symfony/framework-bundle" : "~4.4 || ~5.0",
"symfony/yaml": "~4.4 || ~5.0",
"psr/event-dispatcher": ">=1.0",
"symfony/console" : "~6.1",
"symfony/framework-bundle" : "~6.1",
"symfony/yaml": "~6.1",
"react/event-loop": "@stable"
},
"require-dev" : {
"sensiolabs/security-checker": "^6.0",
"phpunit/phpunit": "^8.4"
},
"autoload" : {
Expand All @@ -27,9 +26,6 @@
"M6Web\\Bundle\\DaemonBundle\\Tests\\": "tests/"
}
},
"conflict": {
"symfony/event-dispatcher": "<4.4"
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
Expand Down
4 changes: 2 additions & 2 deletions src/Command/DaemonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ private function configureDaemonDefinition(): void
* Define command code callback.
*
* @param callable $callback
* @return DaemonCommand
* @return $this
*/
public function setCode(callable $callback): DaemonCommand
public function setCode(callable $callback): static
{
$this->loopCallback = $callback;

Expand Down

0 comments on commit ce99584

Please sign in to comment.