Greg Korba ๐Ÿ› ๏ธ๐Ÿ›น Codito @codito.dev ยท Jan 16

I want to find useless `assertInstanceOf` tests and created a regex with backtracking reference to match the exact same FQN used for assertion _and_ for instantiation, but it seems like `\g` is not supported in #PHPStorm. I used $1 too, no luck. Ideas? regex101.com/r/uuKa7O/2

0 likes 2 replies

?

Replies

Greg Korba ๐Ÿ› ๏ธ๐Ÿ›น Codito ยท Jan 16

It's `\1` ๐Ÿ˜Ž.

Seifeddine / โต™โตขโดผ ๐Ÿ˜ ๐Ÿฆ€ ยท Jan 16

Can i steal this idea and add it as a linter rule to Mago? ๐Ÿ‘€