Open
Description
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
- PHP 8.1.23
- Chrome Browser Version: 117.0.5938.132
- ChromeDriver Version: 117.0.5938.149
- composer.json
"name": "magento/magento-cloud-template",
"version": "2.4.6",
(...)
"require-dev": {
"allure-framework/allure-phpunit": "*",
"codeception/module-asserts": "*",
"codeception/module-phpbrowser": "*",
"magento/magento2-functional-testing-framework": "*",
"phpunit/phpunit": "*"
}
Steps to reproduce
- vendor/bin/mftf build:project
Expected result
- no error
Actual result
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
Metadata
Metadata
Assignees
Labels
No labels