Skip to content

Commit

Permalink
ArgumentName -> Argument
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Sep 28, 2023
1 parent efda2d3 commit cc6d711
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ArgumentName.php → src/Argument.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @api
* @psalm-immutable
*/
final class ArgumentName
final class Argument
{
/**
* @param non-empty-string $name
Expand Down
4 changes: 2 additions & 2 deletions src/ConditionalType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
final class ConditionalType implements Type
{
public readonly ArgumentName|TemplateType $subject;
public readonly Argument|TemplateType $subject;

public readonly Type $is;

Expand All @@ -24,7 +24,7 @@ final class ConditionalType implements Type
* @psalm-internal Typhoon\Type
*/
public function __construct(
TemplateType|ArgumentName $subject,
Argument|TemplateType $subject,
Type $is,
Type $if,
Type $else,
Expand Down
2 changes: 1 addition & 1 deletion src/types.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public static function template(string $name): TemplateType
/**
* @psalm-pure
*/
public static function conditional(TemplateType|ArgumentName $subject, Type $is, Type $if, Type $else): ConditionalType
public static function conditional(Argument|TemplateType $subject, Type $is, Type $if, Type $else): ConditionalType
{
return new ConditionalType($subject, $is, $if, $else);
}
Expand Down

0 comments on commit cc6d711

Please sign in to comment.