Skip to content

Commit

Permalink
Merge pull request #11510 from greg0ire/missing-type-hint
Browse files Browse the repository at this point in the history
Add missing type declaration
  • Loading branch information
greg0ire committed Jun 20, 2024
2 parents 00b29a1 + 1eb67b7 commit f46d8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@
]]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[array]]></code>
<code><![CDATA[array{
* fieldName: string,
* type?: string,
Expand All @@ -518,7 +519,6 @@
* options?: array
* }]]></code>
<code><![CDATA[array{usage: int|null, region?: string}]]></code>
<code><![CDATA[loadMappingFile]]></code>
</InvalidReturnType>
<MoreSpecificImplementedParamType>
<code><![CDATA[$metadata]]></code>
Expand Down
2 changes: 1 addition & 1 deletion src/Mapping/Driver/XmlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ private function getCascadeMappings(SimpleXMLElement $cascadeElement): array
/**
* {@inheritDoc}
*/
protected function loadMappingFile($file)
protected function loadMappingFile($file): array
{
$this->validateMapping($file);
$result = [];
Expand Down

0 comments on commit f46d8a1

Please sign in to comment.