Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3750831
D1655.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
610 B
Referenced Files
None
Subscribers
None
D1655.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1655: Use PHP 7.3 is_countable function when present
Attached
Detach File
Event Timeline
Log In to Comment