File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ function sql_injection_subst($argNum) {
67
67
override (\array_reduce (0 ), type (2 ));
68
68
override (\array_slice (0 ), type (0 ));
69
69
override (\array_diff (0 ), type (0 ));
70
+ override (\array_first (0 ), elementType (0 ));
71
+ override (\array_last (0 ), elementType (0 ));
70
72
override (\array_diff_assoc (0 ), type (0 ));
71
73
override (\array_diff_uassoc (0 ), type (0 ));
72
74
override (\array_diff_key (0 ), type (0 ));
Original file line number Diff line number Diff line change @@ -1110,11 +1110,21 @@ function array_merge(
1110
1110
): array {}
1111
1111
1112
1112
/**
1113
+ * @template TKey
1114
+ * @template TValue
1115
+ * @param array<TKey, TValue> $array
1116
+ * @return TValue|null
1113
1117
* @since 8.5
1118
+ * @meta
1114
1119
*/
1115
1120
function array_first (array $ array ): mixed {}
1116
1121
1117
1122
/**
1123
+ * @template TKey
1124
+ * @template TValue
1125
+ * @param array<TKey, TValue> $array
1126
+ * @return TValue|null
1118
1127
* @since 8.5
1128
+ * @meta
1119
1129
*/
1120
1130
function array_last (array $ array ): mixed {}
You can’t perform that action at this time.
0 commit comments