Skip to content

Commit

Permalink
improved typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Luukdewaaier committed Dec 22, 2023
1 parent 4077baa commit f5e15f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function unify_path(string $path): string

if (!function_exists('extractEnumName')) {
/**
* @param string $fullyQualifiedName
* @param class-string $fullyQualifiedName
* @throws ReflectionException
* @return string
*/
Expand All @@ -29,7 +29,7 @@ function extractEnumName(string $fullyQualifiedName): string

if (!function_exists('extractEnumShortName')) {
/**
* @param string $fullyQualifiedName
* @param class-string $fullyQualifiedName
* @throws ReflectionException
* @return string
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Support/TypescriptFormatters/EnumFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class EnumFormatter
{
/**
* @var string
* @var class-string
*/
private string $fullyQualifiedName;

Expand All @@ -20,7 +20,7 @@ class EnumFormatter
private ReflectionEnum $reflectionEnum;

/**
* @param string $fullyQualifiedName
* @param class-string $fullyQualifiedName
* @throws ReflectionException
*/
public function __construct(string $fullyQualifiedName)
Expand Down

0 comments on commit f5e15f8

Please sign in to comment.