File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -221,14 +221,14 @@ public static function camel($value)
221
221
*
222
222
* @param string $subject
223
223
* @param int $index
224
- * @return string|null
224
+ * @return string|false
225
225
*/
226
226
public static function charAt ($ subject , $ index )
227
227
{
228
228
$ length = mb_strlen ($ subject );
229
229
230
230
if ($ index < 0 ? $ index < -$ length : $ index > $ length - 1 ) {
231
- return null ;
231
+ return false ;
232
232
}
233
233
234
234
return mb_substr ($ subject , $ index , 1 );
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function basename($suffix = '')
103
103
* Get the character at the specified index.
104
104
*
105
105
* @param int $index
106
- * @return string|null
106
+ * @return string|false
107
107
*/
108
108
public function charAt ($ index )
109
109
{
You can’t perform that action at this time.
0 commit comments