Skip to content

Commit d250dcb

Browse files
author
Antoine Lelaisant
committed
fix: Collection get schema typehint
1 parent 5c97ae8 commit d250dcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
final class Collection
1010
{
1111
/**
12-
* @param iterable<JsonSchema<mixed>> $schemas
12+
* @param iterable<JsonSchemaInterface<mixed>> $schemas
1313
*/
1414
public function __construct(private iterable $schemas)
1515
{
1616
}
1717

1818
/**
19-
* @template J of JsonSchema
19+
* @template J of JsonSchemaInterface
2020
*
2121
* @param class-string<J> $schemaClassName
2222
*
2323
* @return J
2424
*/
25-
public function get(string $schemaClassName): JsonSchema
25+
public function get(string $schemaClassName): JsonSchemaInterface
2626
{
2727
foreach ($this->schemas as $schema) {
2828
if (is_a($schema, $schemaClassName)) {

0 commit comments

Comments
 (0)