You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Methods returning by reference no longer return a reference #98
A method that returns by reference (function &name()) no longer returns a reference once TypePHP is active, even without any docblock. Writes through the reference are lost and PHP emits a notice.
[1,2], no notice: the reference returned by items() points to $bag->items, as in plain PHP.
Context: our test suite hits the notice on &getCommandOptions() in our list endpoint base classes. Code that relies on writing through such a reference would silently change behaviour.
Activity
rcalicdan commentedon Oct 3, 2026
This is certainly to be an ast bug in typephp ast transformation parser.. Will look into it..