gsherwood on master
Fixed docblocks Because custom… (compare)
develop, I can help you get that working, but I'd need a little more information on how you've installed and are running PHPCS/PHPCompatibility (Phar, clones, Composer).
develop) would be your best bet and yes, 10 already contains a huge amount of new checks related to PHP 8.
@glen-84 Sort of, though having a mixed installation like that makes it slightly more awkward. Basically PHPCompat adds a new dependency and you're currently missing that dependency.
There are several ways to solve it though:
composer install --no-dev, then use the
phpcscommand in the
vendor/bin/directory of PHPCompat to run the PHPCompat checks. This will only be useful if you run just and only PHPCompatibility over code.
composer global phpcompatibility/php-compatibility:"dev-develop". You might need to make sure that your global Composer config file allows for
'minimum-stability': 'dev'. You may also want to wait until PR PHPCompatibility/PHPCompatibility#1245 has been merged to prevent a possible exception being thrown (merge expected later today). PHPCompat + PHPCSUtils should automatically register themselves with the Composer globally installed PHPCS instance as the DealerDirect Composer PHPCS plugin will be installed as well.
1.0.0-alpha3tag and register the location of PHPCSUtils with the Composer global PHPCS instance via the
Does that help ?
develop, you will need to run
composer global update phpcompatibility/php-compatibility --with-dependenciesregularly.
\r\nline endings are reported as ERRORs with the following message: End of line character is invalid; expected "\n" but found "\r\n"
\nline ending character is considered as the only "correct" one.
developfor now. https://github.com/PHPCompatibility/PHPCompatibility
How am I meant to indent something like :
public function __construct(
private string $username,
private \underserved\QueryRunner $query,
private \underserved\StatusWords $status
... if I have 8 spaces before each of the Private lines (ie parameters) PHPCS tells me I need 4... but if I have 4, it tells me I need 8