Skip to content

Commit 5fa995d

Browse files
committed
🎨 fix stan
1 parent 3761dfb commit 5fa995d

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/.php-cs-fixer.* export-ignore
33
/CHANGELOG.md export-ignore
44
/docs/ export-ignore
5+
/phpstan*.neon export-ignore
56
/phpunit.xml.dist export-ignore
67
/LICENSE export-ignore
78
/README.md export-ignore

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
],
1212
"require": {
1313
"php": "^7.3 || ^8.0",
14-
"symfony/form": "^4.4 || ^5.0 || ^6.0"
14+
"symfony/form": "^4.4 || ^5.0 || ^6.0",
15+
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0"
1516
},
1617
"require-dev": {
1718
"phpunit/phpunit": "^9.5",
@@ -20,7 +21,7 @@
2021
},
2122
"extra": {
2223
"branch-alias": {
23-
"dev-master": "1.0.x-dev"
24+
"dev-master": "1.x-dev"
2425
}
2526
},
2627
"autoload": {

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src

src/Form/Messenger/AbstractBusType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle(FormEvent $event, object $command): void
4646
$prev = $exception->getPrevious();
4747
if ($prev instanceof \DomainException || $prev instanceof \InvalidArgumentException) {
4848
$event->getForm()->addError(new FormError($prev->getMessage()));
49-
} else {
49+
} elseif (null !== $prev) {
5050
throw $prev;
5151
}
5252
} catch (\DomainException | \InvalidArgumentException $exception) {

0 commit comments

Comments
 (0)