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

Fix uncaught TypeError #6719

Closed
wants to merge 1 commit into from
Closed

Conversation

jschaedl
Copy link
Contributor

fixes #6718

@coveralls
Copy link

Pull Request Test Coverage Report for Build 3738920756

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.004%) to 93.378%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Console/Command/FixCommand.php 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
src/PharChecker.php 1 85.71%
Totals Coverage Status
Change from base Build 3722532501: -0.004%
Covered Lines: 22675
Relevant Lines: 24283

💛 - Coveralls

Copy link
Member

@julienfalque julienfalque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for tackling this!

@@ -283,7 +283,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ('none' === $progressType || null === $stdErr) {
$progressOutput = new NullOutput();
} else {
$finder = new \ArrayIterator(iterator_to_array($finder));
$finder = new \ArrayIterator($finder);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this line before this if? This would remove the need to do the same at line 316.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it might be better to replace count() with iterator_count() so we don't need to rely on ArrayIterator.

Copy link
Contributor

@kubawerlos kubawerlos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have a test to prevent regression.

@keradus
Copy link
Member

keradus commented Jan 2, 2023

thanks everyone involved here, especially @jschaedl !
I will let myself to close this PR and merge #6734 instead, as it also has a test included!

@keradus keradus closed this Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal error on PHP 8.1.13 using path-mode intersection
5 participants