Skip to content

Commit 2c5e530

Browse files
committed
add deprecation notes
1 parent 9adab45 commit 2c5e530

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/helpers.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ function array_except($array, $keys)
7676
/**
7777
* Return the first element in an array passing a given truth test.
7878
*
79+
* @deprecated A native function with the same name was introduced in PHP 8.5.
80+
* Use Illuminate\Support\Arr::first to keep functionality
81+
*
7982
* @param array $array
8083
* @param callable|null $callback
8184
* @param mixed $default
@@ -162,6 +165,9 @@ function array_has($array, $keys)
162165
/**
163166
* Return the last element in an array passing a given truth test.
164167
*
168+
* @deprecated A native function with the same name was introduced in PHP 8.5.
169+
* Use Illuminate\Support\Arr::last to keep functionality
170+
*
165171
* @param array $array
166172
* @param callable|null $callback
167173
* @param mixed $default
@@ -421,6 +427,9 @@ function str_before($subject, $search)
421427
/**
422428
* Determine if a given string contains a given substring.
423429
*
430+
* @deprecated A native function with the same name was introduced in PHP 8.0.
431+
* Use Illuminate\Support\Str::contains to keep functionality
432+
*
424433
* @param string $haystack
425434
* @param string|array $needles
426435
* @return bool

0 commit comments

Comments
 (0)