Review main Merged

71943[BUGFIX] Avoid incomplete setup in FileHandlingUtilityTest

Stefan Bürk CR +2 V +2 Easy +12 −2 updated 10/23/21, 18:50

Commit message

Since PHP 8.1 passing null as first argument
($format) has been deprecated. LanguageService
uses 'sprintf()' for  formatting messages.

In normal instances LanguageService would
return translated keys, or at least an empty
string.

Test in FileHandlingUtilityTest has been mocked
the LanguageServiceFactory to inject it into
a class, thus not providing a proper setup
LanguageService and return null instead of
an empty string as translation.

This patch change from mocked to prophezied
LanguageServiceFactory and LanguageServices
objects to avoid these deprecation messages
in PHP 8.1.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1