Closed mohammad-sarwar closed 1 year ago
Hi @mohammad-sarwar,
~please make sure, that you use version 10.2.1 of localizationteam/l10nmgr. Version 11 is not compatible with TYPO3 v10.~
But it says it's compatible in the composer.json, ext_emconf.php and on https://extensions.typo3.org/extension/l10nmgr 😅 That's why updated it in the first place. But okay good to know thank you.
I was a bit too fast with my answer. You are right: v11 is supposed to work with TYPO3 v10 and the bitwise operator returns 0 or 1 as integer but not as a boolean.
Hello,
we currently got the problem that we get a TypeError when we execute the file garbage collection scheduler task. After some debugging we found that error comes with the new version 11.0. Specifically in l10nmgr/Classes/Task/L10nmgrFileGarbageCollection.php:3 =>
declare(strict_types=1);
As the types are checked strictly now the execute() function throws the mentioned error:
$globalResult &= $result;
is using a bitwise operator. So we always get an Integer as value here and not the declared bool as return value.We patched the extension currently by casting
$gobalResult
as a bool. That might not be the best solution and it would be awesome if you could provide a solution/fix for this.Patch:
Thank you!
Our site is running with TYPO3 10 and PHP 7.4
Kind regards Mo