Skip to content

Commit

Permalink
Use class-string directly in annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Jun 23, 2022
1 parent 5e72a93 commit 28163ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions App.php
Expand Up @@ -51,8 +51,7 @@ class App
* @param string $class Class name
* @param string $type Type of class
* @param string $suffix Class name suffix
* @return string|null Namespaced class name, null if the class is not found.
* @psalm-return class-string|null
* @return class-string|null Namespaced class name, null if the class is not found.
*/
public static function className(string $class, string $type = '', string $suffix = ''): ?string
{
Expand Down
3 changes: 1 addition & 2 deletions ObjectRegistry.php
Expand Up @@ -168,8 +168,7 @@ protected function _checkDuplicate(string $name, array $config): void
* Should resolve the classname for a given object type.
*
* @param string $class The class to resolve.
* @return string|null The resolved name or null for failure.
* @psalm-return class-string|null
* @return class-string|null The resolved name or null for failure.
*/
abstract protected function _resolveClassName(string $class): ?string;

Expand Down
3 changes: 1 addition & 2 deletions StaticConfigTrait.php
Expand Up @@ -317,8 +317,7 @@ public static function setDsnClassMap(array $map): void
/**
* Returns the DSN class map for this class.
*
* @return array<string, string>
* @psalm-return array<string, class-string>
* @return array<string, class-string>
*/
public static function getDsnClassMap(): array
{
Expand Down

0 comments on commit 28163ed

Please sign in to comment.