kphp
kphp copied to clipboard
GCC compile fail on `var_dump` with `shape`
Code example:
<?php
/**
* @return shape(foo: int, boo: string)
*/
function f() {
return shape(["foo" => 1, "boo" => "hello"]);
}
$a = f();
var_dump($a);
Actual Behavior:
...
not known conversion from shape<...
Expected Behavior:
No error or compile time warning.