Closed jofranz closed 1 year ago
For polyfill.php
, the usage of $this
looks fine to me. But I wouldn't be surprised if their pattern-matcher was little off. (This is an anonymous class inside an anonymous function... which is not very common.)
For smarty-v2@1.0.0
, that probably is a latent bug (i.e. code is wrong; but currently I can't see a symptom). Fortunately, Eileen posted an update for smarty-v2@1.0.1
which incidentally fixes that. So I'll update the backport to use it.
Thanks for reporting @jofranz. v23.03.0 is up and should include a fix for the smarty-v2
issue.
The polyfill.php
is more awkward - since it looks like a false-negative to me. A few ways to go:
polyfill.php
and sprinkle in something like phpcs:ignore
. (After that, we'd update civix.)phpcs
/PHPCompatibility
. Give them an example to test (e.g. an anonymous-class inside an anonymous-function). (If they can fix it, then that's the best outcome.)
phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.4-8.1
Civix version: 23.02.1