kphp
kphp copied to clipboard
Support multistring phpdoc for `shape`
Example code:
<?php
/**
* @return shape(
* uuid?: string,
* id: int,
* )
*/
function test_shape() {
return shape([
'uuid' => 'sss',
'id' => 1,
]);
}
Expectation reality: No errors in compilation
Actual reality: error during compilation
another.php:9 in test_shape
function test_shape() {
Could not parse @return: shape(
expected ':'
Will be done together with #538