Skip to content

Commit

Permalink
Merge 4842fbb into 440e8c9
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Dec 1, 2020
2 parents 440e8c9 + 4842fbb commit a85e1c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -15,7 +15,7 @@ matrix:
include:
# Test the latest stable release
- php: 7.2
env: PHPSTAN=true
env: PHPSTAN=true COMPOSER1=true
- php: 7.4
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" TESTNOSECURITYBUNDLE=true

Expand All @@ -38,6 +38,7 @@ matrix:

before_install:
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- if [[ $COMPOSER1 = true ]]; then composer selfupdate --1; fi
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;

Expand Down
4 changes: 2 additions & 2 deletions Controller/GraphqliteController.php
Expand Up @@ -44,11 +44,11 @@ class GraphqliteController
*/
private $serverConfig;

public function __construct(ServerConfig $serverConfig, HttpMessageFactoryInterface $httpMessageFactory = null, ?int $debug = Debug::RETHROW_UNSAFE_EXCEPTIONS)
public function __construct(ServerConfig $serverConfig, HttpMessageFactoryInterface $httpMessageFactory = null, ?int $debug = null)
{
$this->serverConfig = $serverConfig;
$this->httpMessageFactory = $httpMessageFactory ?: new PsrHttpFactory(new ServerRequestFactory(), new StreamFactory(), new UploadedFileFactory(), new ResponseFactory());
$this->debug = $debug ?? false;
$this->debug = $debug ?? $serverConfig->getDebug();
}

public function loadRoutes(): RouteCollection
Expand Down

0 comments on commit a85e1c7

Please sign in to comment.