We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7895b19 commit b14f736Copy full SHA for b14f736
1 file changed
src/Loader/StrictPoLoader.php
@@ -347,7 +347,15 @@ private function readOriginal(): void
347
*/
348
private function readPlural(): bool
349
{
350
- return ($data = $this->readIdentifier('msgid_plural')) !== null && $this->translation->setPlural($data);
+ $data = $this->readIdentifier('msgid_plural');
351
+
352
+ if ($data === null) {
353
+ return false;
354
+ }
355
356
+ $this->translation->setPlural($data);
357
358
+ return true;
359
}
360
361
/**
0 commit comments