-
## Setting the scene
At this time, it has not yet been decided what the minimum supported PHP version will be for PHPCS 5.0, though it will be PHP 7.2 or higher (as PHP 7.2 is the new minimum suppo…
jrfnl updated
6 months ago
-
Im stumped.
in order to get grunt-phpcs running, i did the standard npm install, and configured my Gruntfile.js
phpcs: {
application: {
dir: 'src'
},
…
-
**Describe the bug**
I get an error when run phpcs or phpcs-fix when I upgrade my project on php 8.1.
vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php:32 it seem some path files are "null" i…
-
## Is your feature request related to a problem?
Discovered while investigating upstream issue https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/529.
It appears there is a change in PHP 8…
jrfnl updated
2 months ago
-
Dear PHP MD developers,
PHP MD uses doc comment annotations to exclude methods or classes from PHPMD or to suppress special rules for some software artifacts.
But, unless I'm not using it correctly…
-
## Describe the bug
Destructuring an array for foreach - `foreach ($data as [, , $value]) {` - violates the `Squiz.Arrays.ArrayDeclaration.SpaceBeforeComma` ("Expected 0 spaces between "," and comma;…
-
## Describe the bug
There's sort of two bugs in one here. One is that the error message is displayed differently when running `phpcs` than it is when running `phpcbf`. The other is that the error h…
-
```
------ -----------------------------------------------------------------------------------------------------------
Line SniffHelpers.php
------ -------------------------------------------…
-
TL;DR: _PHPCompatibility_ thinks my `Foo::mysql_bar()` is one of [Original MySQL API](http://php.net/manual/en/book.mysql.php)'s [`mysql_*` functions](http://php.net/manual/en/ref.mysql.php).
Conside…
C-Duv updated
4 years ago
-
### Rule
All new PHP files MUST have strict type mode enabled by starting with `declare(strict_types=1)`;. All updated PHP files SHOULD have strict type mode enabled. PHP interfaces SHOULD NOT have t…