Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Added support of Symfony 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelandrieu committed Jun 10, 2019
1 parent 121a92f commit b8b65c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"phpunit/phpunit": "^8.0",
"sensiolabs/security-checker": "^5.0",
"symfony/cache": "~3.4|~4.2.0",
"symfony/event-dispatcher": "~3.4|~4.2.0",
"symfony/event-dispatcher": "~3.4|>=4.3.1",
"vimeo/psalm": "^3.2"
},
"suggest": {
Expand Down
6 changes: 6 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon

parameters:
ignoreErrors:
# To be removed once we remove the support of Symfony 3.4 cause of a BC break introduced in Symfony 4.3
# See https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching
- '/Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface/'
4 changes: 2 additions & 2 deletions tests/Transactions/SimpleTransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function testCreationWithInvalidSettingsWillThrowAnException(): void

$placeStub->expects($this->any())
->method('getThreshold')
->willReturn(-1)
->willReturn(-1.0)
;

SimpleTransaction::createFromPlace($placeStub, 'http://some-uri.domain');
Expand Down Expand Up @@ -154,7 +154,7 @@ private function createPlaceStub()

$placeStub->expects($this->any())
->method('getThreshold')
->willReturn(2)
->willReturn(2.0)
;

return $placeStub;
Expand Down

0 comments on commit b8b65c3

Please sign in to comment.