Skip to content

Commit

Permalink
try to fix remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simonberger committed Mar 15, 2021
1 parent 00b3532 commit b60db93
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 31 deletions.
3 changes: 1 addition & 2 deletions lib/Doctrine/ORM/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,8 @@ public function addNamedNativeQuery($name, $sql, Query\ResultSetMapping $rsm)
*
* @param string $name The name of the query.
*
* @return array A tuple with the first element being the SQL string and the second
* @return array{string, ResultSetMapping} A tuple with the first element being the SQL string and the second
* element being the ResultSetMapping.
* @psalm-return array{string, ResultSetMapping}
*
* @throws ORMException
*/
Expand Down
31 changes: 15 additions & 16 deletions lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,22 +386,21 @@ private function buildFieldMappings(ClassMetadataInfo $metadata)
*
* @param string $tableName
*
* @return array
* @psalm-return array{
* fieldName: string,
* columnName: string,
* type: string,
* nullable: bool,
* options?: array{
* unsigned?: bool,
* fixed?: bool,
* comment?: string,
* default?: string
* },
* precision?: int,
* scale?: int,
* length?: int|null
* }
* @return array{
* fieldName: string,
* columnName: string,
* type: string,
* nullable: bool,
* options?: array{
* unsigned?: bool,
* fixed?: bool,
* comment?: string,
* default?: string
* },
* precision?: int,
* scale?: int,
* length?: int|null
* }
*/
private function buildFieldMapping($tableName, Column $column)
{
Expand Down
16 changes: 8 additions & 8 deletions lib/Doctrine/ORM/Query/SqlWalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,15 @@ public function getEntityManager()
*
* @param string $dqlAlias The DQL alias.
*
* @return array
* @return mixed[]
* @psalm-return array{
* metadata: ClassMetadata,
* parent: string,
* relation: mixed[],
* map: mixed,
* nestingLevel: int,
* token: array
* }
* metadata: ClassMetadata,
* parent: string,
* relation: mixed[],
* map: mixed,
* nestingLevel: int,
* token: array
* }
*/
public function getQueryComponent($dqlAlias)
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/ORM/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ public function getMaxResults()
* The available parts are: 'select', 'from', 'join', 'set', 'where',
* 'groupBy', 'having' and 'orderBy'.
*
* @param string $dqlPartName The DQL part name.
* @param string|object|array An Expr object.
* @param bool $append Whether to append (true) or replace (false).
* @param string $dqlPartName The DQL part name.
* @param string|object|array $dqlPart An Expr object.
* @param bool $append Whether to append (true) or replace (false).
* @psalm-param string|object|list<string>|array{join: array<int|string, object>} $dqlPart
*
* @return self
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ private function executeExtraUpdates(): void
*
* @param object $entity
*
* @return array[]
* @return mixed[][]
* @psalm-return array<string, array{mixed, mixed}>
*/
public function & getEntityChangeSet($entity)
Expand Down Expand Up @@ -2986,7 +2986,7 @@ public function getIdentityMap()
*
* @param object $entity
*
* @return array[]
* @return mixed[][]
* @psalm-return array<string, array<string, mixed>>
*/
public function getOriginalEntityData($entity)
Expand Down

0 comments on commit b60db93

Please sign in to comment.