File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ before_script:
99 - mkdir -p build/logs
1010 - composer self-update
1111 - travis_retry composer install --prefer-source --no-interaction
12- - composer require --dev phpstan/phpstan
1312 - composer dump-autoload -o
1413
1514script :
Original file line number Diff line number Diff line change 2626 ],
2727 "require" : {
2828 "php" : " ^7.1" ,
29+ "webmozart/assert" : " ^1.4" ,
2930 "zendframework/zend-console" : " ^2.5"
3031 },
3132 "conflict" : {
3536 "require-dev" : {
3637 "kahlan/kahlan" : " ^4.0" ,
3738 "php-coveralls/php-coveralls" : " ^2.1" ,
39+ "phpstan/phpstan" : " ^0.10.8" ,
40+ "phpstan/phpstan-webmozart-assert" : " ^0.10.0" ,
3841 "zendframework/zend-expressive" : " ^3.0" ,
3942 "zendframework/zend-mvc" : " ^3.0"
4043 },
4144 "config" : {
42- "bin-dir" : " bin"
45+ "bin-dir" : " bin" ,
46+ "sort-packages" : true
4347 },
4448 "extra" : {
4549 "zf" : {
Original file line number Diff line number Diff line change 1+ includes :
2+ - vendor/phpstan/phpstan-webmozart-assert/extension.neon
3+
Original file line number Diff line number Diff line change 55namespace ForceHttpsModule ;
66
77use Psr \Http \Message \ResponseInterface ;
8+ use Webmozart \Assert \Assert ;
89use Zend \Expressive \Router \RouteResult ;
910use Zend \Http \PhpEnvironment \Response ;
1011use Zend \Router \RouteMatch ;
@@ -41,6 +42,7 @@ private function isGoingToBeForcedToHttps($match = null) : bool
4142 return false ;
4243 }
4344
45+ Assert::notNull ($ match );
4446 if (! $ this ->config ['force_all_routes ' ] &&
4547 ! \in_array (
4648 $ match ->getMatchedRouteName (),
You can’t perform that action at this time.
0 commit comments