From acec5b0b33e7357f10512939369828966441b880 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 18 Dec 2019 08:37:51 +0800 Subject: [PATCH 1/2] Change lint check to report fails correctly --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d985a95..1f8312a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,4 +37,4 @@ jobs: script: # Run a php lint across all PHP files. - - find . -name '*\.php' -exec php -l {} \; + - find . -type f -name '*\.php' -print0 | xargs -0 -n1 php -l From 2cb43ad147c3f507cd7db0dc9878319e8b6dcf33 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 18 Dec 2019 08:44:25 +0800 Subject: [PATCH 2/2] Remove type-hint from h5p.classes --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 9895050..a610431 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2458,7 +2458,7 @@ class H5PCore { * @param array $dependency * @return string */ - protected function getDependencyPath(array $dependency): string { + protected function getDependencyPath(array $dependency) { return 'libraries/' . H5PCore::libraryToString($dependency, TRUE); }