mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Add directories for tests relating to - calling user functions (`call_user_func()` and `call_user_func_array()`) - using `::class` to access class names - null coalescing with `??` - concatenation with `.` - indirect function calls (e.g. by calling a variable with a function name) - reporting of line numbers - static variables in functions - type casts As well as organizing a couple of tests into existing sub directories along the way Work towards GH-15631
13 lines
186 B
PHP
13 lines
186 B
PHP
--TEST--
|
|
Assign concat of array and empty string
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = [0];
|
|
$a .= '';
|
|
var_dump($a);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Array to string conversion in %s on line %d
|
|
string(5) "Array"
|