Skip to content

Commit

Permalink
Merge pull request #98 from thesunrise1983/master
Browse files Browse the repository at this point in the history
Add support for Symfony v5
  • Loading branch information
thePanz authored May 8, 2020
2 parents 3facc96 + 8ca0ab3 commit b449fb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ matrix:
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
env: DEPENDENCIES=dev

- php: 7.4
env: SYMFONY_REQUIRE=5.0.*

before_install:
- if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi;
- composer global require --no-progress --no-scripts --no-plugins symfony/flex
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
],
"require": {
"php": "^7.2",
"symfony/framework-bundle": "^3.4 || ^4.2",
"symfony/framework-bundle": "^3.4 || ^4.2 || ^5.0",
"solarium/solarium": "^5.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.3"
"symfony/phpunit-bridge": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function log(SolariumRequest $request, $response, SolariumEndpoint $endpo
);
}

public function collect(HttpRequest $request, HttpResponse $response, \Exception $exception = null)
public function collect(HttpRequest $request, HttpResponse $response, /** \Throwable */ $exception = null)
{
if (isset($this->currentRequest)) {
$this->failCurrentRequest();
Expand Down

0 comments on commit b449fb5

Please sign in to comment.