Skip to content

Commit

Permalink
🎨 fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Oct 30, 2021
1 parent 3761dfb commit 5fa995d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.php-cs-fixer.* export-ignore
/CHANGELOG.md export-ignore
/docs/ export-ignore
/phpstan*.neon export-ignore
/phpunit.xml.dist export-ignore
/LICENSE export-ignore
/README.md export-ignore
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"require": {
"php": "^7.3 || ^8.0",
"symfony/form": "^4.4 || ^5.0 || ^6.0"
"symfony/form": "^4.4 || ^5.0 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand All @@ -20,7 +21,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "1.x-dev"
}
},
"autoload": {
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
level: max
paths:
- src
2 changes: 1 addition & 1 deletion src/Form/Messenger/AbstractBusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function handle(FormEvent $event, object $command): void
$prev = $exception->getPrevious();
if ($prev instanceof \DomainException || $prev instanceof \InvalidArgumentException) {
$event->getForm()->addError(new FormError($prev->getMessage()));
} else {
} elseif (null !== $prev) {
throw $prev;
}
} catch (\DomainException | \InvalidArgumentException $exception) {
Expand Down

0 comments on commit 5fa995d

Please sign in to comment.