Skip to content

Commit d712b29

Browse files
authored
Fix syntax
1 parent b7ebf47 commit d712b29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Arrays/Arr.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public static function filter_prefixed( array $array, string $prefix ): array {
345345
*
346346
* @return mixed
347347
*/
348-
public static function first( $array, callable ?$callback = null, $default = null ) {
348+
public static function first( $array, ?callable $callback = null, $default = null ) {
349349
if ( is_null( $callback ) ) {
350350
if ( empty( $array ) ) {
351351
return self::value( $default );
@@ -707,7 +707,7 @@ public static function join( $array, $glue, $finalGlue = '' ) {
707707
*
708708
* @return mixed
709709
*/
710-
public static function last( $array, callable ?$callback = null, $default = null ) {
710+
public static function last( $array, ?callable $callback = null, $default = null ) {
711711
if ( is_null( $callback ) ) {
712712
return empty( $array ) ? self::value( $default ) : end( $array );
713713
}

0 commit comments

Comments
 (0)