Skip to content

Commit

Permalink
Add support for slevomat/coding-standard:^8.15 (#12)
Browse files Browse the repository at this point in the history
* isAnonymousFunctionUse is replaced by isImportUse in slevomat/coding-standard v8.15.0

---------

Co-authored-by: Bert ter Heide <bert.terheide@iodigital.com>
  • Loading branch information
bertterheide and Bert ter Heide authored Mar 22, 2024
1 parent f4f07c7 commit dd84aca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- 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 dd84aca

Please sign in to comment.