-
I would like to have a sniffer check when there is missed type declaration on a method or property
This will be under a new rule I would like to create:
> Generic.PHP.RequireTypeDeclarationsSniff
…
-
## Describe the bug
I've executed the new installation in my project, [php-toolbox](https://github.com/devdrops/php-toolbox) with the instructions for this source, using Composer. However, when…
-
## Description
Checks for direct database queries within the plugin codebase. These should be avoided as these queries can negatively impact performance and bypass inbuilt caches. This sniff will e…
-
## What problem does this address?
After reviewing recent discussions, it has become apparent that there is a need to reconsider the use of the `WordPress-Docs` coding standard in the Gutenberg pro…
-
## Describe the bug
PSR2.Classes.PropertyDeclaration.Multiple throws false positives when the default value is a variable.
### Code sample
```php
use Some\Other\Class as C;
class A
{
pu…
-
Recently, the [Deprecate dynamic properties RFC](https://wiki.php.net/rfc/deprecate_dynamic_properties) has been approved for PHP 8.2 and as I expected it will cause havoc, I've started doing some tes…
jrfnl updated
12 months ago
-
## Describe the bug
![2023-08-19 03_45_26-Usage · squizlabs_PHP_CodeSniffer Wiki — Mozilla Firefox](https://github.com/squizlabs/PHP_CodeSniffer/assets/14062932/3629a7e5-afd7-4dee-b8e4-00253f939e26)
…
-
`composer run lint` is returning some errors and provoking the [`main` workflow to fail](https://github.com/WordPress/block-development-examples/actions/workflows/main.yml)
I'm removing `"*.php": …
-
My code:
`
-
A few minor coding standards