filefill icon indicating copy to clipboard operation
filefill copied to clipboard

Compatibility with Symfony 7

Open linawolf opened this issue 1 year ago • 3 comments

When running on TYPo3 v 12.4 with Symfony 7 I get a fatal errors:

PHP Fatal error: Declaration of IchHabRecht\Filefill\Command\ResetCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony \Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /var/www/html/vendor/ichhabrecht/filefill/Classes/Command/Reset Command.php on line 52

Fatal error: Declaration of IchHabRecht\Filefill\Command\ResetCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Comp onent\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /var/www/html/vendor/ichhabrecht/filefill/Classes/Command/ResetComma nd.php on line 52

linawolf avatar Jan 27 '24 16:01 linawolf

Adding :int as return value to all execute methods in command solves the problem locally

linawolf avatar Jan 27 '24 16:01 linawolf

Hi @linawolf

Thank you for your issue. This problem should be fixed with the latest 4.3.1 release of filefill.

IchHabRecht avatar Feb 08 '24 16:02 IchHabRecht