-
## Is your feature request related to a problem?
Searching for proper sniffs/sniffs explanations was always a complicated thing when using `phpcs`, at least for me, especially as a newcomer. I've h…
-
## Describe the bug
The Generic.ControlStructures.DisallowYodaConditions sniff has a method called `isArrayStatic()` that determines what the sniff considers to be static arrays. When static arrays…
-
## Describe the bug
Array destructuring is a syntax in PHP where items of an array are assigned to single variables, using an array construct on the left of the assignment, e.g.
```php
[$foo, $…
-
Ran `phpcbf --colors -p src/ tests/` on my CakePHP 5 project:
```
Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Undefined property: PHPStan\PhpDocParser\Ast\PhpDoc\TypelessPar…
-
## Describe the bug
`Squiz.Arrays.ArrayDeclaration.ValueNoNewline` triggers false positive at `static fn`.
### Code sample
```php
return [
static fn (string $value): AAA => new AAA($value…
-
This template is for **user support**. If you are reporting an actual Flycheck bug, please use the relevant issue template instead.
## Checklist
- [x] I have searched existing issues and StackOve…
-
When i run "npm run dev" on a fresh installation i get a lot of warnings/errors. Some examples:
`[11:46:36] PHP Code Sniffer found a problem in C:\xampp\htdocs\wprig\wp-content\themes\wprig\ass…
-
With PHP 7, PHP_CodeSniffer to not find the sniffs from TYPO3SniffPool anymore:
https://travis-ci.org/oliverklee/sniffer-demo
This is the demo project I've used:
https://github.com/oliverklee/sniffe…
-
## 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
3 weeks ago
-
## Describe the bug
When using the `phpcs-only` or `phpcbf-only` attributes within a ruleset, the reports from `phpcs` do not look as expected.
### Code sample
```php
test.php
…