Richard van Velzen
Richard van Velzen
Not necessarily for the initial implementation, but I do plan on adding that as well.
Those are equality assertions, though the documentation for it is hard to find: https://psalm.dev/annotating_code/assertion_syntax/
I believe this has become a bit too large and complex. I'd like to break it up into a few pieces to make it easier to reason about.
@ondrejmirtes it's on my list to work on, but I need/want to finish phpstan/phpdoc-parser#139 first but I'm not really happy with the current version :/
I will try to get to this next week
This is rebased and functionally ready. I've tried to refactor to your suggestion, but I can't figure out how to do it properly - you don't have easy access to...
This fails for `'%[%[]'` which should have size 1.
Absolutely right, but strangely enough this is: https://3v4l.org/Rb3oU
I'll let this sit here until php/doc-en#1646 is resolved :)
The error cases are already covered by tests, so this should be ready to go :)