Skip to content

Commit

Permalink
Update array_clone to better avoid namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Oct 14, 2016
1 parent 7a59286 commit b437b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spies/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static function do_vals_match( $a, $b ) {
public static function array_clone( $array ) {
return array_map( function( $element ) {
return ( ( is_array( $element ) )
? call_user_func( __FUNCTION__, $element )
? Helpers::array_clone( $element )
: ( ( is_object( $element ) )
? clone $element
: $element
Expand Down

0 comments on commit b437b80

Please sign in to comment.