@@ -38,6 +38,8 @@ function append_config(array $array)
38
38
* @param string $key
39
39
* @param mixed $value
40
40
* @return array
41
+ *
42
+ * @deprecated Arr::add() should be used directly instead. Will be removed in Laravel 5.9.
41
43
*/
42
44
function array_add ($ array , $ key , $ value )
43
45
{
@@ -51,6 +53,8 @@ function array_add($array, $key, $value)
51
53
*
52
54
* @param array $array
53
55
* @return array
56
+ *
57
+ * @deprecated Arr::collapse() should be used directly instead. Will be removed in Laravel 5.9.
54
58
*/
55
59
function array_collapse ($ array )
56
60
{
@@ -64,6 +68,8 @@ function array_collapse($array)
64
68
*
65
69
* @param array $array
66
70
* @return array
71
+ *
72
+ * @deprecated Arr::divide() should be used directly instead. Will be removed in Laravel 5.9.
67
73
*/
68
74
function array_divide ($ array )
69
75
{
@@ -78,6 +84,8 @@ function array_divide($array)
78
84
* @param array $array
79
85
* @param string $prepend
80
86
* @return array
87
+ *
88
+ * @deprecated Arr::dot() should be used directly instead. Will be removed in Laravel 5.9.
81
89
*/
82
90
function array_dot ($ array , $ prepend = '' )
83
91
{
@@ -92,6 +100,8 @@ function array_dot($array, $prepend = '')
92
100
* @param array $array
93
101
* @param array|string $keys
94
102
* @return array
103
+ *
104
+ * @deprecated Arr::except() should be used directly instead. Will be removed in Laravel 5.9.
95
105
*/
96
106
function array_except ($ array , $ keys )
97
107
{
@@ -107,6 +117,8 @@ function array_except($array, $keys)
107
117
* @param callable|null $callback
108
118
* @param mixed $default
109
119
* @return mixed
120
+ *
121
+ * @deprecated Arr::first() should be used directly instead. Will be removed in Laravel 5.9.
110
122
*/
111
123
function array_first ($ array , callable $ callback = null , $ default = null )
112
124
{
@@ -121,6 +133,8 @@ function array_first($array, callable $callback = null, $default = null)
121
133
* @param array $array
122
134
* @param int $depth
123
135
* @return array
136
+ *
137
+ * @deprecated Arr::flatten() should be used directly instead. Will be removed in Laravel 5.9.
124
138
*/
125
139
function array_flatten ($ array , $ depth = INF )
126
140
{
@@ -135,6 +149,8 @@ function array_flatten($array, $depth = INF)
135
149
* @param array $array
136
150
* @param array|string $keys
137
151
* @return void
152
+ *
153
+ * @deprecated Arr::forget() should be used directly instead. Will be removed in Laravel 5.9.
138
154
*/
139
155
function array_forget (&$ array , $ keys )
140
156
{
@@ -150,6 +166,8 @@ function array_forget(&$array, $keys)
150
166
* @param string $key
151
167
* @param mixed $default
152
168
* @return mixed
169
+ *
170
+ * @deprecated Arr::get() should be used directly instead. Will be removed in Laravel 5.9.
153
171
*/
154
172
function array_get ($ array , $ key , $ default = null )
155
173
{
@@ -164,6 +182,8 @@ function array_get($array, $key, $default = null)
164
182
* @param \ArrayAccess|array $array
165
183
* @param string|array $keys
166
184
* @return bool
185
+ *
186
+ * @deprecated Arr::has() should be used directly instead. Will be removed in Laravel 5.9.
167
187
*/
168
188
function array_has ($ array , $ keys )
169
189
{
@@ -179,6 +199,8 @@ function array_has($array, $keys)
179
199
* @param callable|null $callback
180
200
* @param mixed $default
181
201
* @return mixed
202
+ *
203
+ * @deprecated Arr::last() should be used directly instead. Will be removed in Laravel 5.9.
182
204
*/
183
205
function array_last ($ array , callable $ callback = null , $ default = null )
184
206
{
@@ -193,6 +215,8 @@ function array_last($array, callable $callback = null, $default = null)
193
215
* @param array $array
194
216
* @param array|string $keys
195
217
* @return array
218
+ *
219
+ * @deprecated Arr::only() should be used directly instead. Will be removed in Laravel 5.9.
196
220
*/
197
221
function array_only ($ array , $ keys )
198
222
{
@@ -208,6 +232,8 @@ function array_only($array, $keys)
208
232
* @param string|array $value
209
233
* @param string|array|null $key
210
234
* @return array
235
+ *
236
+ * @deprecated Arr::pluck() should be used directly instead. Will be removed in Laravel 5.9.
211
237
*/
212
238
function array_pluck ($ array , $ value , $ key = null )
213
239
{
@@ -223,6 +249,8 @@ function array_pluck($array, $value, $key = null)
223
249
* @param mixed $value
224
250
* @param mixed $key
225
251
* @return array
252
+ *
253
+ * @deprecated Arr::prepend() should be used directly instead. Will be removed in Laravel 5.9.
226
254
*/
227
255
function array_prepend ($ array , $ value , $ key = null )
228
256
{
@@ -238,6 +266,8 @@ function array_prepend($array, $value, $key = null)
238
266
* @param string $key
239
267
* @param mixed $default
240
268
* @return mixed
269
+ *
270
+ * @deprecated Arr::pull() should be used directly instead. Will be removed in Laravel 5.9.
241
271
*/
242
272
function array_pull (&$ array , $ key , $ default = null )
243
273
{
@@ -252,6 +282,8 @@ function array_pull(&$array, $key, $default = null)
252
282
* @param array $array
253
283
* @param int|null $num
254
284
* @return mixed
285
+ *
286
+ * @deprecated Arr::random() should be used directly instead. Will be removed in Laravel 5.9.
255
287
*/
256
288
function array_random ($ array , $ num = null )
257
289
{
@@ -269,6 +301,8 @@ function array_random($array, $num = null)
269
301
* @param string $key
270
302
* @param mixed $value
271
303
* @return array
304
+ *
305
+ * @deprecated Arr::set() should be used directly instead. Will be removed in Laravel 5.9.
272
306
*/
273
307
function array_set (&$ array , $ key , $ value )
274
308
{
@@ -283,6 +317,8 @@ function array_set(&$array, $key, $value)
283
317
* @param array $array
284
318
* @param callable|string|null $callback
285
319
* @return array
320
+ *
321
+ * @deprecated Arr::sort() should be used directly instead. Will be removed in Laravel 5.9.
286
322
*/
287
323
function array_sort ($ array , $ callback = null )
288
324
{
@@ -296,6 +332,8 @@ function array_sort($array, $callback = null)
296
332
*
297
333
* @param array $array
298
334
* @return array
335
+ *
336
+ * @deprecated Arr::sortRecursive() should be used directly instead. Will be removed in Laravel 5.9.
299
337
*/
300
338
function array_sort_recursive ($ array )
301
339
{
@@ -310,6 +348,8 @@ function array_sort_recursive($array)
310
348
* @param array $array
311
349
* @param callable $callback
312
350
* @return array
351
+ *
352
+ * @deprecated Arr::where() should be used directly instead. Will be removed in Laravel 5.9.
313
353
*/
314
354
function array_where ($ array , callable $ callback )
315
355
{
@@ -323,6 +363,8 @@ function array_where($array, callable $callback)
323
363
*
324
364
* @param mixed $value
325
365
* @return array
366
+ *
367
+ * @deprecated Arr::wrap() should be used directly instead. Will be removed in Laravel 5.9.
326
368
*/
327
369
function array_wrap ($ value )
328
370
{
@@ -365,6 +407,8 @@ function blank($value)
365
407
*
366
408
* @param string $value
367
409
* @return string
410
+ *
411
+ * @deprecated Str::camel() should be used directly instead. Will be removed in Laravel 5.9.
368
412
*/
369
413
function camel_case ($ value )
370
414
{
@@ -572,6 +616,8 @@ function e($value, $doubleEncode = true)
572
616
* @param string $haystack
573
617
* @param string|array $needles
574
618
* @return bool
619
+ *
620
+ * @deprecated Str::endsWith() should be used directly instead. Will be removed in Laravel 5.9.
575
621
*/
576
622
function ends_with ($ haystack , $ needles )
577
623
{
@@ -650,6 +696,8 @@ function head($array)
650
696
*
651
697
* @param string $value
652
698
* @return string
699
+ *
700
+ * @deprecated Str::kebab() should be used directly instead. Will be removed in Laravel 5.9.
653
701
*/
654
702
function kebab_case ($ value )
655
703
{
@@ -778,6 +826,8 @@ function retry($times, callable $callback, $sleep = 0)
778
826
* @param string $value
779
827
* @param string $delimiter
780
828
* @return string
829
+ *
830
+ * @deprecated Str::snake() should be used directly instead. Will be removed in Laravel 5.9.
781
831
*/
782
832
function snake_case ($ value , $ delimiter = '_ ' )
783
833
{
@@ -792,6 +842,8 @@ function snake_case($value, $delimiter = '_')
792
842
* @param string $haystack
793
843
* @param string|array $needles
794
844
* @return bool
845
+ *
846
+ * @deprecated Str::startsWith() should be used directly instead. Will be removed in Laravel 5.9.
795
847
*/
796
848
function starts_with ($ haystack , $ needles )
797
849
{
@@ -806,6 +858,8 @@ function starts_with($haystack, $needles)
806
858
* @param string $subject
807
859
* @param string $search
808
860
* @return string
861
+ *
862
+ * @deprecated Str::after() should be used directly instead. Will be removed in Laravel 5.9.
809
863
*/
810
864
function str_after ($ subject , $ search )
811
865
{
@@ -820,6 +874,8 @@ function str_after($subject, $search)
820
874
* @param string $subject
821
875
* @param string $search
822
876
* @return string
877
+ *
878
+ * @deprecated Str::before() should be used directly instead. Will be removed in Laravel 5.9.
823
879
*/
824
880
function str_before ($ subject , $ search )
825
881
{
@@ -834,6 +890,8 @@ function str_before($subject, $search)
834
890
* @param string $haystack
835
891
* @param string|array $needles
836
892
* @return bool
893
+ *
894
+ * @deprecated Str::contains() should be used directly instead. Will be removed in Laravel 5.9.
837
895
*/
838
896
function str_contains ($ haystack , $ needles )
839
897
{
@@ -848,6 +906,8 @@ function str_contains($haystack, $needles)
848
906
* @param string $value
849
907
* @param string $cap
850
908
* @return string
909
+ *
910
+ * @deprecated Str::finish() should be used directly instead. Will be removed in Laravel 5.9.
851
911
*/
852
912
function str_finish ($ value , $ cap )
853
913
{
@@ -862,6 +922,8 @@ function str_finish($value, $cap)
862
922
* @param string|array $pattern
863
923
* @param string $value
864
924
* @return bool
925
+ *
926
+ * @deprecated Str::is() should be used directly instead. Will be removed in Laravel 5.9.
865
927
*/
866
928
function str_is ($ pattern , $ value )
867
929
{
@@ -877,6 +939,8 @@ function str_is($pattern, $value)
877
939
* @param int $limit
878
940
* @param string $end
879
941
* @return string
942
+ *
943
+ * @deprecated Str::limit() should be used directly instead. Will be removed in Laravel 5.9.
880
944
*/
881
945
function str_limit ($ value , $ limit = 100 , $ end = '... ' )
882
946
{
@@ -891,6 +955,8 @@ function str_limit($value, $limit = 100, $end = '...')
891
955
* @param string $value
892
956
* @param int $count
893
957
* @return string
958
+ *
959
+ * @deprecated Str::plural() should be used directly instead. Will be removed in Laravel 5.9.
894
960
*/
895
961
function str_plural ($ value , $ count = 2 )
896
962
{
@@ -906,6 +972,8 @@ function str_plural($value, $count = 2)
906
972
* @return string
907
973
*
908
974
* @throws \RuntimeException
975
+ *
976
+ * @deprecated Str::random() should be used directly instead. Will be removed in Laravel 5.9.
909
977
*/
910
978
function str_random ($ length = 16 )
911
979
{
@@ -921,6 +989,8 @@ function str_random($length = 16)
921
989
* @param array $replace
922
990
* @param string $subject
923
991
* @return string
992
+ *
993
+ * @deprecated Str::replaceArray() should be used directly instead. Will be removed in Laravel 5.9.
924
994
*/
925
995
function str_replace_array ($ search , array $ replace , $ subject )
926
996
{
@@ -936,6 +1006,8 @@ function str_replace_array($search, array $replace, $subject)
936
1006
* @param string $replace
937
1007
* @param string $subject
938
1008
* @return string
1009
+ *
1010
+ * @deprecated Str::replaceFirst() should be used directly instead. Will be removed in Laravel 5.9.
939
1011
*/
940
1012
function str_replace_first ($ search , $ replace , $ subject )
941
1013
{
@@ -951,6 +1023,8 @@ function str_replace_first($search, $replace, $subject)
951
1023
* @param string $replace
952
1024
* @param string $subject
953
1025
* @return string
1026
+ *
1027
+ * @deprecated Str::replaceLast() should be used directly instead. Will be removed in Laravel 5.9.
954
1028
*/
955
1029
function str_replace_last ($ search , $ replace , $ subject )
956
1030
{
@@ -964,6 +1038,8 @@ function str_replace_last($search, $replace, $subject)
964
1038
*
965
1039
* @param string $value
966
1040
* @return string
1041
+ *
1042
+ * @deprecated Str::singular() should be used directly instead. Will be removed in Laravel 5.9.
967
1043
*/
968
1044
function str_singular ($ value )
969
1045
{
@@ -979,6 +1055,8 @@ function str_singular($value)
979
1055
* @param string $separator
980
1056
* @param string $language
981
1057
* @return string
1058
+ *
1059
+ * @deprecated Str::slug() should be used directly instead. Will be removed in Laravel 5.9.
982
1060
*/
983
1061
function str_slug ($ title , $ separator = '- ' , $ language = 'en ' )
984
1062
{
@@ -993,6 +1071,8 @@ function str_slug($title, $separator = '-', $language = 'en')
993
1071
* @param string $value
994
1072
* @param string $prefix
995
1073
* @return string
1074
+ *
1075
+ * @deprecated Str::start() should be used directly instead. Will be removed in Laravel 5.9.
996
1076
*/
997
1077
function str_start ($ value , $ prefix )
998
1078
{
@@ -1006,6 +1086,8 @@ function str_start($value, $prefix)
1006
1086
*
1007
1087
* @param string $value
1008
1088
* @return string
1089
+ *
1090
+ * @deprecated Str::studly() should be used directly instead. Will be removed in Laravel 5.9.
1009
1091
*/
1010
1092
function studly_case ($ value )
1011
1093
{
@@ -1080,6 +1162,8 @@ function throw_unless($condition, $exception, ...$parameters)
1080
1162
*
1081
1163
* @param string $value
1082
1164
* @return string
1165
+ *
1166
+ * @deprecated Str::title() should be used directly instead. Will be removed in Laravel 5.9.
1083
1167
*/
1084
1168
function title_case ($ value )
1085
1169
{
0 commit comments