We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe1a79c commit 6cee6bbCopy full SHA for 6cee6bb
.travis.yml
@@ -6,8 +6,10 @@ php:
6
- 7.0
7
- 7.1
8
- 7.2
9
+ - 7.3
10
+ - 7.4
11
before_script:
12
- COMPOSER_DISCARD_CHANGES=1 composer update --prefer-dist --no-interaction --no-suggest
13
- cp phpunit.xml.example phpunit.xml
14
script:
- - vendor/bin/phpunit
15
+ - vendor/bin/phpunit
src/Validate.php
@@ -4,6 +4,13 @@
4
5
use MadeSimple\Arrays\ArrDots;
+// Add polyfill in case where running in < PHP 7.3
+if (!function_exists('is_countable')) {
+ function is_countable($var) {
+ return (is_array($var) || $var instanceof Countable);
+ }
+}
+
class Validate
{
16
/**
0 commit comments