Merge pull request #18463 from kamil-tekiela/Message

More specific return type
This commit is contained in:
Maurício Meneghini Fauth 2023-05-29 23:23:02 -03:00 committed by GitHub
commit 716a456ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -104,7 +104,7 @@ class Message implements Stringable
/**
* holds additional messages
*
* @var mixed[]
* @var (string|Message)[]
*/
protected array $addedMessages = [];
@ -538,7 +538,7 @@ class Message implements Stringable
/**
* return all added messages
*
* @return mixed[]
* @return (string|Message)[]
*/
public function getAddedMessages(): array
{

View File

@ -7612,15 +7612,11 @@
<code><![CDATA[$this->params]]></code>
</MixedArgument>
<MixedAssignment>
<code>$addMessage</code>
<code>$val</code>
</MixedAssignment>
<MixedInferredReturnType>
<code>string</code>
</MixedInferredReturnType>
<MixedOperand>
<code>$addMessage</code>
</MixedOperand>
<MixedReturnStatement>
<code><![CDATA[self::$level[$this->getNumber()]]]></code>
</MixedReturnStatement>