Skip to content

Commit

Permalink
Merge branch 'release/v29.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
aadmathijssen committed Mar 22, 2024
2 parents bcdee44 + 710453f commit 954a61f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v29.2.0] - 2024-03-22
### Changed
- Add support for `slevomat/coding-standard:^8.15`, replace usages of `UseStatementHelper::isAnonymousFunctionUse` with `UseStatementHelper::!isImportUse`

## [v29.1.0] - 2023-12-12
### Added
- Add support for PHP 8.3
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
"slevomat/coding-standard": "^7.1 || ^8.0",
"slevomat/coding-standard": "^8.15",
"squizlabs/php_codesniffer": "^3.6.0",
"phpcompatibility/php-compatibility": "^9.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function register(): array
*/
public function process(File $phpcsFile, $usePointer)
{
if (UseStatementHelper::isAnonymousFunctionUse($phpcsFile, $usePointer)) {
if (!UseStatementHelper::isImportUse($phpcsFile, $usePointer)) {
return;
}

Expand Down

0 comments on commit 954a61f

Please sign in to comment.