Skip to content

Commit

Permalink
Removed phpstan due to unresolvable EventDispatcher conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
szymach committed Feb 17, 2020
1 parent 1100d9b commit c1c0205
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 68 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ before_script:

script:
- vendor/bin/phpspec run -f pretty
- vendor/bin/phpstan analyse -l 7 -c phpstan.neon .
2 changes: 1 addition & 1 deletion Controller/ReorderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private function dispatchEvent(AdminEvent $event): void
&& true === $this->eventDispatcher instanceof PsrEventDispatcherInterface
) {
$this->eventDispatcher->dispatch($event);
} elseif (true === $this->eventDispatcher instanceof EventDispatcherInterface) {
} else {
$this->eventDispatcher->dispatch(get_class($event), $event);
}
}
Expand Down
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
},
"require-dev": {
"phpspec/phpspec": "^5.0|^6.0",
"phpdocumentor/reflection-docblock": "^3.1",
"phpstan/phpstan": "^0.12.11",
"phpstan/phpstan-doctrine": "^0.12.9",
"phpstan/phpstan-strict-rules": "^0.12.2",
"psr/event-dispatcher": "^1.0"
"phpdocumentor/reflection-docblock": "^3.1"
},
"config": {
"bin-dir": "vendor/bin"
Expand Down
61 changes: 0 additions & 61 deletions phpstan.neon

This file was deleted.

0 comments on commit c1c0205

Please sign in to comment.