Skip to content

Commit

Permalink
fix: typehint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Lelaisant committed Oct 3, 2022
1 parent 9c32434 commit f573522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"php": ">=8.0",
"knplabs/php-json-schema": ">=0.0.3",
"knplabs/php-json-schema": ">=0.0.4-alpha0",
"zircote/swagger-php": ">=4.4",
"symfony/http-kernel": ">=6.0",
"symfony/dependency-injection": ">=6.0",
Expand Down
3 changes: 2 additions & 1 deletion src/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Knp\JsonSchemaBundle;

use Knp\JsonSchema\Collection;
use Knp\JsonSchema\JsonSchemaInterface;
use Knp\JsonSchema\Validator;
use Knp\JsonSchemaBundle\Exception\JsonSchemaException;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -29,7 +30,7 @@ public function __construct(
/**
* @template T
*
* @param class-string<JsonSchema<T>> $schemaClass
* @param class-string<JsonSchemaInterface<T>> $schemaClass
*
* @return T
*/
Expand Down

0 comments on commit f573522

Please sign in to comment.