Skip to content

Commit

Permalink
Merge pull request doctrine#9017 from norkunas/fix-typehints
Browse files Browse the repository at this point in the history
Fix some typehints in QueryBuilder
  • Loading branch information
greg0ire authored Sep 16, 2021
2 parents 0bcc3ee + f1db7d7 commit 248ff82
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/Doctrine/ORM/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,6 @@ public function getQuery()
*/
private function findRootAlias(string $alias, string $parentAlias): string
{
$rootAlias = null;

if (in_array($parentAlias, $this->getRootAliases())) {
$rootAlias = $parentAlias;
} elseif (isset($this->joinRootAliases[$parentAlias])) {
Expand Down Expand Up @@ -454,8 +452,8 @@ public function getRootAlias()
* $qb->getRootAliases(); // array('u')
* </code>
*
* @return mixed[]
* @psalm-return list<mixed>
* @return string[]
* @psalm-return list<string>
*/
public function getRootAliases()
{
Expand Down Expand Up @@ -489,8 +487,8 @@ public function getRootAliases()
* $qb->getAllAliases(); // array('u','a')
* </code>
*
* @return mixed[]
* @psalm-return list<mixed>
* @return string[]
* @psalm-return list<string>
*/
public function getAllAliases()
{
Expand All @@ -509,8 +507,8 @@ public function getAllAliases()
* $qb->getRootEntities(); // array('User')
* </code>
*
* @return mixed[]
* @psalm-return list<mixed>
* @return string[]
* @psalm-return list<string>
*/
public function getRootEntities()
{
Expand Down

0 comments on commit 248ff82

Please sign in to comment.