Skip to content

Commit 0212f88

Browse files
xurshudyanXurshudyan
and
Xurshudyan
authored
Replace is_integer() with is_int() (#55851)
Co-authored-by: Xurshudyan <v.khurshudyan@aico.swiss>
1 parent 3f3e301 commit 0212f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public static function integer(ArrayAccess|array $array, string|int|null $key, ?
558558
{
559559
$value = Arr::get($array, $key, $default);
560560

561-
if (! is_integer($value)) {
561+
if (! is_int($value)) {
562562
throw new InvalidArgumentException(
563563
sprintf('Array value for key [%s] must be an integer, %s found.', $key, gettype($value))
564564
);

0 commit comments

Comments
 (0)