Uh oh!
There was an error while loading. Please reload this page.
"Symfony\Component\Translation\PluralizationRules" is deprecated - #26375
Conversation
bede060 to
76f7b70Comparerullzer
commented
Mar 31, 2021
CI does not agree |
nickvergessen
commented
Mar 31, 2021
Fun, showed a broken string missing plurals in the test, but only with this I noticed that our placeholders dont work anymore |
nickvergessen
commented
Mar 31, 2021
Fixed by readding vsprintf at the end and adding a test in the L10nTest for it |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
MorrisJobke
commented
Apr 1, 2021
CI is still very unhappy 😢 |
| // No exclude groups | ||
| $data[] = ['no', null, null, null, false]; | ||
| $data[] = ['no', null, null, [], false]; |
There was a problem hiding this comment.
- Test\Share20\ManagerTest::testIsSharingDisabledForUser with data set #0 ('no', null, null, null, false)
Method getUserGroupIds may not return value of type NULL, its return declaration is ": array"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
bb415e4 to
79ebc7fComparenickvergessen
commented
Apr 22, 2021
@MorrisJobke good to go? |
MorrisJobke
commented
Apr 23, 2021
@nickvergessen Should this be backported? Was requested in 012f791#commitcomment-49915825 |
nickvergessen
commented
Apr 23, 2021
So it's deprecated, should only log in debug? or does it log normally? |
@nickvergessen It logs on several occasions as or this one |
nickvergessen
commented
Apr 26, 2021
But if you get this in your log on a production instance it seems you have debug enabled, which you should disable, can you confirm? |
nickvergessen
commented
Apr 26, 2021
Nevermind, I found the problem... feel free to test the branch at #26762 |
ghost
commented
Apr 26, 2021
I was allready doubting myself. 🥴😄 Glad you found it.🥳 |
ghost
commented
Apr 26, 2021
Works. 🛸 |
Symfony\Component\Translation\PluralizationRulesis deprecated, replacement isSymfony\Component\Translation\IdentityTranslatorl10n/*.jsfiles always had the same result anyway. At least our unit tests for L10NString still pass, so looks promising.|and count argument is%count%instead of%nhttps://github.com/nextcloud/3rdparty/blob/03eb378a5c8f29da9d0240b142bc0e7e66c31694/symfony/translation-contracts/TranslatorInterface.php#L20-L62
|inside translations.