opened 05:27AM - 11 Aug 24 UTC
closed 05:18AM - 16 Aug 24 UTC
PHP
compatibility
Trustpilot
A part of https://github.com/cabinetsbay/site/issues/155
![2024-08-11--08-26-…57](https://github.com/user-attachments/assets/fba88b3a-7c77-451c-aa92-4822ffef4922)
```
[
Mage2.PRO: {
"mage2pro/core": "11.3.0",
"Magento": "2.4.4",
"PHP": "8.1.11",
"Command": "bin/magento setup:di:compile"
}
channel: main
context: []
datetime: Monolog\DateTimeImmutable "2024-08-11T05:25:14.937286+00:00"
extra: []
level: 400
level_name: ERROR
message: Deprecated Functionality: Optional parameter $data declared before required parameter $pluginStatus is implicitly treated as a required parameter in C:\work\clients\cabinetsbay.com\m\2024-02-27\code\app\code\Trustpilot\Reviews\Block\Success.php on line 25
#0 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\composer\ClassLoader.php(571): Magento\Framework\App\ErrorHandler->handler(8192, 'Optional parame...', 'C:\\work\\clients...', 25)
#1 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\composer\ClassLoader.php(571): include()
#2 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile('C:\\work\\clients...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('Trustpilot\\Revi...')
#4 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\setup\src\Magento\Setup\Module\Di\Code\Reader\ClassesScanner.php(137): class_exists('Trustpilot\\Revi...')
#5 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\setup\src\Magento\Setup\Module\Di\Code\Reader\ClassesScanner.php(120): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Trustpilot\\Revi...', 'C:\\work\\clients...')
#6 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\setup\src\Magento\Setup\Module\Di\Code\Reader\ClassesScanner.php(90): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract(Object(RecursiveIteratorIterator))
#7 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\setup\src\Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList('C:/work/clients...')
#8 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\setup\src\Magento\Setup\Module\Di\App\Task\Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation()
#9 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\setup\src\Magento\Setup\Console\Command\DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process(Object(Closure), Object(Closure))
#10 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\symfony\console\Command\Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\symfony\console\Application.php(1021): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\symfony\console\Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DiCompileCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\magento\framework\Console\Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\vendor\symfony\console\Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 C:\work\clients\cabinetsbay.com\m\2024-02-27\code\bin\magento(23): Symfony\Component\Console\Application->run()
#16 {main}
]
1 Df\Framework\Log\Dispatcher::handle
https://github.com/mage2pro/core/tree/11.3.0/Framework/Log/Dispatcher.php#L114
vendor/mage2pro/core/Framework/Log/Dispatcher.php:114
2 Monolog\Logger::addRecord
vendor/monolog/monolog/src/Monolog/Logger.php:399
3 Monolog\Logger::error
vendor/monolog/monolog/src/Monolog/Logger.php:650
4 Magento\Framework\Logger\LoggerProxy::error
https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/Logger/LoggerProxy.php#L126
vendor/magento/framework/Logger/LoggerProxy.php:126
5 Magento\Framework\Console\Cli::doRun
https://github.com/magento/magento2/tree/2.4.4/lib/internal/Magento/Framework/Console/Cli.php#L118
vendor/magento/framework/Console/Cli.php:118
6 Symfony\Component\Console\Application::run
vendor/symfony/console/Application.php:149
```