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.
2 parents 4c21059 + 5b95565 commit c3fa550Copy full SHA for c3fa550
src/helpers.php
@@ -222,21 +222,6 @@ function square_brackets_to_dots($string)
222
}
223
224
225
-if (! function_exists('is_countable')) {
226
- /**
227
- * We need this because is_countable was only introduced in PHP 7.3,
228
- * and in PHP 7.2 you should check if count() argument is really countable.
229
- * This function may be removed in future if PHP >= 7.3 becomes a requirement.
230
- *
231
- * @param $obj
232
- * @return bool
233
- */
234
- function is_countable($obj)
235
- {
236
- return is_array($obj) || $obj instanceof Countable;
237
- }
238
-}
239
-
240
if (! function_exists('old_empty_or_null')) {
241
/**
242
* This method is an alternative to Laravel's old() helper, which mistakenly
0 commit comments