Hello, I'm getting an error when running vendor/bin/mftf build:project
I also managed to fix it my changing line 89 in vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/CleanProjectCommand.php from:
$fileSystem->remove($file); to $fileSystem->remove($file->getRealPath());
PHP Fatal error: Uncaught TypeError: Symfony\Component\Filesystem\Filesystem::remove(): Argument #1 ($files) must be of type iterable|string, Symfony\Component\Finder\SplFileInfo given, called in /var/www/html/project-name/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/CleanProjectCommand.php on line 89 and defined in /var/www/html/project-name/vendor/symfony/filesystem/Filesystem.php:150
Fixed Issues (if relevant)
Argument passed to Filesystem:remove() is now a string instead of SplFileInfo object.
Contribution checklist
[ ] Pull request has a meaningful description of its purpose
[ ] All commits are accompanied by meaningful commit messages
[ ] All new or changed code is covered with unit/verification tests (if applicable)
[ ] All automated tests passed successfully (all builds are green)
[ ] Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests
https://github.com/magento/magento2-functional-testing-framework/issues/908
Hello, I'm getting an error when running
vendor/bin/mftf build:project
I also managed to fix it my changing line 89 in vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/CleanProjectCommand.php from:
$fileSystem->remove($file);
to$fileSystem->remove($file->getRealPath());
Preconditions
Steps to reproduce
Expected result
Actual result
Fixed Issues (if relevant)
Contribution checklist