Juliette
Juliette
... to get the pointers to the trait import use statements in an OO construct. Needs a new `uses` array entry in the `analyzeOOStructure()` method to track the `use` tokens....
## Is your feature request related to a problem? Seems like a quick win - the `FunctionDeclarations::getProperties()` method already does quite some token walking in the function signature anyway, so...
PHPCSUtils 1.1.0 introduced a number of new exceptions via #598 (and started using them via #599). These exceptions currently all extend the PHPCSUtils `PHPCSUtils\Exceptions\RuntimeException`, which in turn extends the PHPCS...
PHPCS 4.0 makes a couple of changes to the `File::getDeclarationName()` method, which have been applied to the `BCFile::getDeclarationName()` method via PR #674 for PHPCSUtils 1.1.0, but should be considered a...
[PHP 8.5](https://www.php.net/releases/8.5/en.php) introduces new syntaxes for which it should be verified if the Tokenizer needs updates and/or whether any sniffs need updating. ## Action list Notes: * _Action items in...
While working on something else, I came across the `Squiz.ControlStructures.SwitchDeclaration` sniff, and saw the following issues: 1. The sniff contains a number of whitespace/blank line related errors which are not...
## Describe the bug Given a control structure which contains a `match` expression within its condition... ... and within the body of said control structure, there is a nested control...
## Describe the bug The `Generic.WhiteSpace.ScopeIndent` sniff incorrectly flags code _within_ a closure, and directly following a _nested_ closure as having the wrong indent, while the indent is correct. ###...
## Summary Came across this by chance. Documenting the error here as this needs further investigation. Looks like PHPCS tries to create a `LocalFile` object for symlinked directories on Windows,...
## Setting the scene PHP 8.0 introduced support for attributes via the `#[...]` syntax. At this moment, neither PHPCS itself, nor PHPCSExtra contain any sniffs to handle the formatting of...