Skip to content

#91. Changed finder constraint #92

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

Merged
merged 6 commits into from
May 4, 2023
Merged

Conversation

alexdrupal
Copy link
Contributor

Fix for D10 and symfony/finder version #91

@hkirsman hkirsman self-requested a review March 28, 2023 13:25
@hkirsman hkirsman force-pushed the feature/#91-finder-version branch 2 times, most recently from db8e121 to dd54508 Compare March 31, 2023 12:14
@hkirsman hkirsman force-pushed the feature/#91-finder-version branch from dd54508 to d314e0c Compare March 31, 2023 12:15
@@ -3,7 +3,7 @@ jobs:
# Install all dependencies and run check tasks.
build_and_test:
docker:
- image: circleci/php:8.0-cli-node
- image: cimg/php:8.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems we just needed to update to newer PHP as I think it was here in Finder library where it failed

$this->dirs = array_merge($this->dirs, ...$resolvedDirs);

circleci/php is deprecated so moving to cimg/php ( https://circleci.com/developer/images/image/cimg/php )

There was no cli tag and node is not needed. At least I don't know why it would be needed.

@@ -189,7 +189,7 @@ public function testHandlesParallelProcess(): void {
$this->process
->expects($this->exactly(2))
->method('isRunning')
->willReturnOnConsecutiveCalls([TRUE, FALSE]);
->willReturnOnConsecutiveCalls(TRUE, FALSE);
Copy link
Collaborator

@hkirsman hkirsman Mar 31, 2023

Choose a reason for hiding this comment

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

isRunning() method should be returning boolean, but this was mocking it so that it would return array of those booleans. In older version is seemed to have worked or fail silently, but in newer version of Symfony it has return type defined so it failed:

image

@hkirsman
Copy link
Collaborator

  • Fixed tests
  • Added Lando for local setup and configured xdebug to work with it
  • Updated readme for PHP requirements

@hkirsman hkirsman requested a review from vermario May 2, 2023 13:59
@hkirsman hkirsman merged commit a4c53f1 into main May 4, 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.

2 participants