Changeset 49108 for trunk/tests/phpunit/includes/utils.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r47122 r49108 300 300 function dmp( ...$args ) { 301 301 foreach ( $args as $thing ) { 302 echo ( is_scalar( $thing ) ? strval( $thing ): var_export( $thing, true ) ), "\n";302 echo ( is_scalar( $thing ) ? (string) $thing : var_export( $thing, true ) ), "\n"; 303 303 } 304 304 } … … 320 320 foreach ( $array as $k => $v ) { 321 321 if ( is_numeric( $k ) ) { 322 $index = strval( $k );322 $index = (string) $k; 323 323 } else { 324 324 $index = "'" . addcslashes( $k, "\n\r\t'\\" ) . "'";
Note: See TracChangeset
for help on using the changeset viewer.