php2go/fixtures/0006-expression-assignment.php

12 lines
133 B
PHP

<?php
function Bar(): ?\stdClass {
return new \stdClass();
}
if ( ($f = Bar()) !== null) {
var_dump($f);
} else {
echo "x\n";
}