We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c97ae8 commit d250dcbCopy full SHA for d250dcb
src/Collection.php
@@ -9,20 +9,20 @@
9
final class Collection
10
{
11
/**
12
- * @param iterable<JsonSchema<mixed>> $schemas
+ * @param iterable<JsonSchemaInterface<mixed>> $schemas
13
*/
14
public function __construct(private iterable $schemas)
15
16
}
17
18
19
- * @template J of JsonSchema
+ * @template J of JsonSchemaInterface
20
*
21
* @param class-string<J> $schemaClassName
22
23
* @return J
24
25
- public function get(string $schemaClassName): JsonSchema
+ public function get(string $schemaClassName): JsonSchemaInterface
26
27
foreach ($this->schemas as $schema) {
28
if (is_a($schema, $schemaClassName)) {
0 commit comments