Skip to content

Commit 8fbca4b

Browse files
authored
Merge pull request #7 from thecodingmachine/phpstan0.11
Adding compatibility with PHPStan 0.11
2 parents ba8eea4 + bc9696f commit 8fbca4b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sudo: false
33
php:
44
- 7.1
55
- 7.2
6+
- 7.3
67
env:
78
global:
89
# We need to prefer source to get PHPStan test directory. Otherwise, it is removed from ZIP

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
],
1212
"require": {
1313
"php": "^7.1",
14-
"phpstan/phpstan": "^0.10",
15-
"thecodingmachine/safe": "^0.1"
14+
"phpstan/phpstan": "^0.10 | v0.11",
15+
"thecodingmachine/safe": "^0.1.11"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^7.1",
18+
"phpunit/phpunit": "^7.5.2",
1919
"php-coveralls/php-coveralls": "^2.1",
20-
"squizlabs/php_codesniffer": "^3.2"
20+
"squizlabs/php_codesniffer": "^3.4"
2121
},
2222
"autoload": {
2323
"psr-4": {

src/Utils/FunctionListLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function getFunctionList(): array
2525
throw new \RuntimeException('Could not find thecodingmachine/safe\'s functionsList.php file.');
2626
}
2727
// Let's index these functions by their name
28-
self::$functions = \array_combine($functions, $functions);
28+
self::$functions = \Safe\array_combine($functions, $functions);
2929
}
3030
return self::$functions;
3131
}

0 commit comments

Comments
 (0)