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
I believe the fix for this problem is to add T_CLASS to the list of exceptions in hasExtraParentheses() so I'll try to pen a PR with tests and that oneliner.
The text was updated successfully, but these errors were encountered:
Thank you again for quickly fixing #126! I ran into a different problem after I tried 2.1.20 on my project.
Patchwork rewrites the following:
as something like:
The
spliceAllInstantiations()
removes the parenthesis around(new TestClass())
and produces an invalid anonymous class declaration:patchwork/src/CodeManipulation/Actions/RedefinitionOfNew.php
Lines 44 to 46 in dbe712f
I believe the fix for this problem is to add
T_CLASS
to the list of exceptions inhasExtraParentheses()
so I'll try to pen a PR with tests and that oneliner.The text was updated successfully, but these errors were encountered: