Closed leonstafford closed 3 years ago
"WordPress application"
What an upgrade! 🤣
So naming it wpRewrite
is impossible?
I see, it is a global...
// phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
... $wp_rewrite ...
Yeah, starting to feel like solution is to just avoid that at all costs and grab pagination base by other means... Close?
WordPress uses a global variable instead of a DI container.
Looks like get_option( 'rewrite_rules' )
may be more useful way to determine some URL structures for this repo... I should be OK for now, thanks for coming to rescue again! I'm just doing first pass at this repo adjusting for Codesniffer, then will get to PHPStan and friends next and cry for help when I get stuck :D
more work to do in design, but CS issue cleared
Jó napot, @szepeviktor! Is there a simple way via
phpcs.xml
to exclude certain vars for these sniffs, like we can do withWordPress.NamingConventions.ValidVariableName
?