Skip to content

Commit

Permalink
Update getReference phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian-B authored Jul 17, 2024
1 parent bf6c619 commit b9d4898
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ReferenceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,17 @@ public function addReference($name, $object)
}

/**
* Loads an object using stored reference
* named by $name
* Loads an object using stored reference named by $name
*
* @template T of object

Check failure on line 201 in src/ReferenceRepository.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.3)

Incorrect order of annotations groups.
*
* @param string $name
* @psalm-param class-string<T>|null $class
*
* @return object
* @return T|object
* @psalm-return ($class is null ? object : T)
*
* @throws OutOfBoundsException - if repository does not exist.
*
* @template T of object
*/
public function getReference($name, ?string $class = null)
{
Expand Down

0 comments on commit b9d4898

Please sign in to comment.