Skip to content

Commit

Permalink
Don't typehint the Schemafactory decorator by it's implementation, but
Browse files Browse the repository at this point in the history
by it's interface
  • Loading branch information
arnedesmedt committed Feb 27, 2020
1 parent ef98086 commit c1d9e0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Hydra/JsonSchema/SchemaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
namespace ApiPlatform\Core\Hydra\JsonSchema;

use ApiPlatform\Core\JsonSchema\Schema;
use ApiPlatform\Core\JsonSchema\SchemaFactory as BaseSchemaFactory;
use ApiPlatform\Core\JsonSchema\SchemaFactoryInterface;

/**
Expand All @@ -38,7 +37,7 @@ final class SchemaFactory implements SchemaFactoryInterface

private $schemaFactory;

public function __construct(BaseSchemaFactory $schemaFactory)
public function __construct(SchemaFactoryInterface $schemaFactory)
{
$this->schemaFactory = $schemaFactory;
$schemaFactory->addDistinctFormat('jsonld');
Expand Down

0 comments on commit c1d9e0f

Please sign in to comment.