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
various libraries, e.g. some of composer, come as .phar (or some are even only available as phar, but in general it's most often easier to use the phar if its available)
e.g. maxmind geoip, AWS PHP SDK,...
e.g use cases for AWS SDK is translation, SMS, email, customer service,...
These are typically development tools to be run locally, and usually available to be installed via Composer - as such, they wouldn't need to be pushed up to a repo. As such, you could ignore them, either at your PHPCS config file level, or with a PHPCS ignore line at the point of inclusion.
I haven't seen requests for this before to make me consider making a change to the sniff itself.
require_once( 'some.phar' );
will trigger:
WordPressVIPMinimum.Files.IncludingNonPHPFile.IncludingNonPHPFile
.phar files however must be loaded via include/require, as otherwise they won't work.
Please adjust the sniff.
The text was updated successfully, but these errors were encountered: