Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error on PHP 8.1.13 using path-mode intersection #6718

Closed
jschaedl opened this issue Dec 20, 2022 · 3 comments · Fixed by #6734
Closed

Fatal error on PHP 8.1.13 using path-mode intersection #6718

jschaedl opened this issue Dec 20, 2022 · 3 comments · Fixed by #6734
Labels

Comments

@jschaedl
Copy link
Contributor

Bug report

I encountered a problem running php-cs-fixer on PHP 8.1.13 using path-mode intersection. Here is the command I am running:

php bin/php-cs-fixer fix --diff --dry-run -v --path-mode=intersection -- ./MyClass.php which results in

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, CallbackFilterIterator given in .../vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php:318

Details

  • PHP version: 8.1.13
  • PHP CS Fixer version: 3.13.1
jschaedl added a commit to jschaedl/PHP-CS-Fixer that referenced this issue Dec 20, 2022
@jschaedl
Copy link
Contributor Author

jschaedl commented Dec 20, 2022

probably duplicate of #6715

@icanhazstring
Copy link

@jschaedl don't know if that is really a duplicate. These are two different errors.

@keradus
Copy link
Member

keradus commented Jan 2, 2023

Fix released as v3.13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants