Skip to content

Commit

Permalink
Revert potential BC break in protected method
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed May 30, 2023
1 parent 375dad3 commit 2e7b60d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -798,11 +798,14 @@
</MixedAssignment>
<MixedInferredReturnType>
<code>bool</code>
<code>string</code>
</MixedInferredReturnType>
<MixedOperand>
<code>$label</code>
</MixedOperand>
<MixedReturnStatement>
<code>$message</code>
<code>$message</code>
<code><![CDATA[$results->last()]]></code>
</MixedReturnStatement>
<ParamNameMismatch>
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/Navigation/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public function htmlify(AbstractPage $page)
protected function translate($message, $textDomain = null)
{
if (! is_string($message) || empty($message)) {
return '';
return $message;
}

if (! $this->isTranslatorEnabled() || ! $this->hasTranslator()) {
Expand Down

0 comments on commit 2e7b60d

Please sign in to comment.