Page MenuHomeDevCentral

D1655.diff
No OneTemporary

D1655.diff

diff --git a/src/Collections/TraversableUtilities.php b/src/Collections/TraversableUtilities.php
--- a/src/Collections/TraversableUtilities.php
+++ b/src/Collections/TraversableUtilities.php
@@ -23,6 +23,11 @@
}
public static function isCountable ($countable) : bool {
+ if (function_exists('is_countable')) {
+ // PHP 7.3 has is_countable
+ return is_countable($countable);
+ }
+
// https://github.com/Ayesh/is_countable-polyfill/blob/master/src/is_countable.php
return is_array($countable)
|| $countable instanceof Countable

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 03:47 (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250210
Default Alt Text
D1655.diff (610 B)

Event Timeline