Skip to content

Commit 51e8e0c

Browse files
committed
Add secondary fix for PHP7.3
1 parent f9f183a commit 51e8e0c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

example/.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
install:
2+
- |
3+
if [ "$(phpenv version-name)" == 7.3 ]; then sed -e 's#^function is_countable(#// &#' -i vendor/giacocorsiglia/wordpress-stubs/wordpress-stubs.php; fi

example/phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ parameters:
3232
- '/^Parameter #2 \$deprecated of function load_plugin_textdomain expects string, false given\.$/'
3333
# WP-CLI accepts a class as callable
3434
- '/^Parameter #2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed, \S+ given\.$/'
35+
# Please consider commenting ignores: issue URL or reason of ignore

0 commit comments

Comments
 (0)