Skip to content

Commit f6822f4

Browse files
committed
Fix linter issues
1 parent 3dba420 commit f6822f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Exception/Definition/Template/TemplateArgumentException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public function __construct(
2929
parent::__construct($type, $template, $code, $previous);
3030
}
3131

32+
/**
33+
* @return int<0, max>
34+
*/
3235
private function getArgumentIndex(NamedTypeNode $type, TemplateArgumentNode $argument): int
3336
{
3437
$index = $type->arguments?->findIndex($argument);

src/Type/Builder/DateTimeTypeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function build(
3131
TypeParserInterface $parser,
3232
): TypeInterface {
3333
$this->expectNoShapeFields($statement);
34-
$this->expectTemplateArgumentsLessOrEqualThan($statement, 1, 0);
34+
$this->expectTemplateArgumentsLessOrEqualThan($statement, 1);
3535

3636
/** @var class-string<\DateTimeInterface> $class */
3737
$class = $statement->name->toString();

0 commit comments

Comments
 (0)