Skip to content

Commit 5a5512f

Browse files
committed
Fix analysis ci - Fix phpstan versions - Update phpspec
1 parent f6ecf37 commit 5a5512f

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/analysis.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- 8.3
2121
symfony:
2222
- '6.4.*'
23-
- '7.2.*'
23+
- '7.3.*'
2424
env:
2525
APP_ENV: test
2626
steps:
@@ -59,11 +59,11 @@ jobs:
5959
id: end-of-setup
6060
-
6161
name: 'ECS - Run'
62-
run: 'if [ -f ruleset/ecs.php ]; then vendor/bin/ecs check src/ tests/Behat/ --no-progress-bar -c ruleset/ecs.php ; else echo Ecs ruleset file does not exist, skipping step ; fi'
62+
run: 'if [ -f ruleset/ecs.php ]; then vendor/bin/ecs check --no-progress-bar -c ruleset/ecs.php ; else echo Ecs ruleset file does not exist, skipping step ; fi'
6363
if: 'always() && steps.end-of-setup.outcome == ''success'''
6464
-
6565
name: 'PHPStan - Run'
66-
run: 'if [ -f ruleset/phpstan.neon ]; then vendor/bin/phpstan analyse -c ruleset/phpstan.neon src/ ; else echo PHPStan ruleset file does not exist, skipping step ; fi'
66+
run: 'if [ -f ruleset/phpstan.neon ]; then vendor/bin/phpstan analyse -c ruleset/phpstan.neon ; else echo PHPStan ruleset file does not exist, skipping step ; fi'
6767
if: 'always() && steps.end-of-setup.outcome == ''success'''
6868
-
6969
name: 'PHPSpec - Run'

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
"webmozart/assert": "^1.11"
2424
},
2525
"require-dev": {
26-
"friendsoftwig/twigcs": "6.4.0",
26+
"friendsoftwig/twigcs": "6.5.0",
2727
"php-parallel-lint/php-parallel-lint": "^1.4",
2828
"phpmd/phpmd": "^2.15.0",
2929
"phpro/grumphp": "^2.9",
30-
"phpspec/phpspec": "^7.3",
30+
"phpspec/phpspec": "^8.0",
3131
"phpstan/extension-installer": "^1.3",
32-
"phpstan/phpstan": "^2.0",
33-
"phpstan/phpstan-doctrine": "^2.0",
34-
"phpstan/phpstan-strict-rules": "^2.0",
35-
"phpstan/phpstan-webmozart-assert": "^2.0",
32+
"phpstan/phpstan": "2.1.32",
33+
"phpstan/phpstan-doctrine": "2.0.11",
34+
"phpstan/phpstan-strict-rules": "2.0.7",
35+
"phpstan/phpstan-webmozart-assert": "2.0.0",
3636
"phpunit/phpunit": "^9.5",
3737
"rector/rector": "^2.0",
3838
"seld/jsonlint": "^1.11",

src/Command/SynoliaSchedulerRunCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ private function runScheduledCommand(SymfonyStyle $io, ScheduledCommandInterface
118118
{
119119
/** Fetch the object in case Connexion has been closed between two scheduled Command */
120120
$scheduledCommand = $this->scheduledCommandRepository->find($scheduledCommand->getId());
121-
121+
if (null === $scheduledCommand) {
122+
return;
123+
}
122124
$this->executeCommand($scheduledCommand, $io);
123125
}
124126

0 commit comments

Comments
 (0)