Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonberger committed Apr 18, 2021
1 parent f47aa2c commit 64bb314
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions lib/Doctrine/ORM/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,9 @@ public function addNamedNativeQuery($name, $sql, Query\ResultSetMapping $rsm)
*
* @param string $name The name of the query.
*
* @return array{string, ResultSetMapping} A tuple with the first element being the SQL string and the second
* element being the ResultSetMapping.
* @return mixed[]
* @psalm-return array{string, ResultSetMapping} A tuple with the first element being the SQL string and the second
* element being the ResultSetMapping.
*
* @throws ORMException
*/
Expand Down
3 changes: 2 additions & 1 deletion lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ private function buildFieldMappings(ClassMetadataInfo $metadata)
*
* @param string $tableName
*
* @return array{
* @return mixed[]
* @psalm-return array{
* fieldName: string,
* columnName: string,
* type: string,
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/PersistentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ public function __sleep(): array
* @param int $offset
* @param int|null $length
*
* @return T[]
* @return mixed[]
* @psalm-return array<TKey,T>
*/
public function slice($offset, $length = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,7 @@ private function getTypes($field, $value, ClassMetadata $class)
*
* @param mixed $value
*
* @return array{mixed}
* @return mixed[]
*/
private function getValues($value)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Query/Expr/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct($args = [])
}

/**
* @param array $args
* @param string[]|object[] $args
* @psalm-param list<string|object> $args
*
* @return static
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Query/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public function semanticalError($message = '', $token = null)
*
* @param bool $resetPeek Reset peek after finding the closing parenthesis.
*
* @return mixed[]| null
* @return mixed[]|null
* @psalm-return array<string, mixed>| null
*/
private function peekBeyondClosingParenthesis(bool $resetPeek = true)
Expand Down

0 comments on commit 64bb314

Please sign in to comment.