Skip to content

Error when switch composer 1 to composer 2

PHP Fatal error: Declaration of MagentoComposerRootUpdatePluginPluginCommandsOverrideRequireCommand::execute(SymfonyComponentConsoleInputInputInterface $input, SymfonyComponentConsoleOutputOutputInterface $output) must be compatible with ComposerCommandRequireCommand::execute(SymfonyComponentConsoleInputInputInterface $input, SymfonyComponentConsoleOutputOutputInterface $output) i am using magento 2.4.3-p1 and composer 1, now when i update composer to 2 and run composer -v it gives me the… Read More »Error when switch composer 1 to composer 2

Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given

In the following Code: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace MagentoFrameworkFilesystem; /** * Application file system directories dictionary. * * Provides information about what directories are available… Read More »Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given