#php_codesniffer — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #php_codesniffer, aggregated by home.social.
-
Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
#php -
Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
#php -
Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
#php -
Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
#php -
Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
#php -
Note to self: the rule to detect #PHP short open tags with #PHP_CodeSniffer is:
Generic.PHP.DisallowShortOpenTag.Found
And the command needs to be invoked as:
php -d short_open_tag=on vendor/bin/phpcs
The magic trailing ".Found" in the rule name is what allows the <?= variant.
-
Note to self: the rule to detect #PHP short open tags with #PHP_CodeSniffer is:
Generic.PHP.DisallowShortOpenTag.Found
And the command needs to be invoked as:
php -d short_open_tag=on vendor/bin/phpcs
The magic trailing ".Found" in the rule name is what allows the <?= variant.
-
Note to self: the rule to detect #PHP short open tags with #PHP_CodeSniffer is:
Generic.PHP.DisallowShortOpenTag.Found
And the command needs to be invoked as:
php -d short_open_tag=on vendor/bin/phpcs
The magic trailing ".Found" in the rule name is what allows the <?= variant.
-
Hey, #OpenSource and #PHP friends!
@jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!
Such a fun idea! Come along and watch #FOSS in action!
https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/924
-
Hey, #OpenSource and #PHP friends!
@jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!
Such a fun idea! Come along and watch #FOSS in action!
https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/924
-
Hey, #OpenSource and #PHP friends!
@jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!
Such a fun idea! Come along and watch #FOSS in action!
https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/924
-
Hey, #OpenSource and #PHP friends!
@jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!
Such a fun idea! Come along and watch #FOSS in action!
https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/924
-
Hey, #OpenSource and #PHP friends!
@jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!
Such a fun idea! Come along and watch #FOSS in action!
https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/924
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.
-
I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.
The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.
-
I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.
The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.
-
I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.
The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.
-
I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.
The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.
-
I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.
The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.