--TEST-- Typed property assignment by ref with variable name --FILE-- $name =& $ref; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } var_dump($test); ?> --EXPECT-- Cannot assign string to property Test::$prop of type int object(Test)#2 (0) { ["prop"]=> uninitialized(int) }