Skip to content

Commit

Permalink
Merge pull request #7 from thecodingmachine/phpstan0.11
Browse files Browse the repository at this point in the history
Adding compatibility with PHPStan 0.11
  • Loading branch information
moufmouf authored Jan 18, 2019
2 parents ba8eea4 + bc9696f commit 8fbca4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sudo: false
php:
- 7.1
- 7.2
- 7.3
env:
global:
# We need to prefer source to get PHPStan test directory. Otherwise, it is removed from ZIP
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
"require": {
"php": "^7.1",
"phpstan/phpstan": "^0.10",
"thecodingmachine/safe": "^0.1"
"phpstan/phpstan": "^0.10 | v0.11",
"thecodingmachine/safe": "^0.1.11"
},
"require-dev": {
"phpunit/phpunit": "^7.1",
"phpunit/phpunit": "^7.5.2",
"php-coveralls/php-coveralls": "^2.1",
"squizlabs/php_codesniffer": "^3.2"
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/FunctionListLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function getFunctionList(): array
throw new \RuntimeException('Could not find thecodingmachine/safe\'s functionsList.php file.');
}
// Let's index these functions by their name
self::$functions = \array_combine($functions, $functions);
self::$functions = \Safe\array_combine($functions, $functions);
}
return self::$functions;
}
Expand Down

0 comments on commit 8fbca4b

Please sign in to comment.