Skip to content

Commit

Permalink
Fixing PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Oct 17, 2019
1 parent 1e14a82 commit f1437c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/GraphQLiteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace TheCodingMachine;

use Doctrine\Common\Annotations\Reader;
use Psr\Http\Server\MiddlewareInterface;
use TheCodingMachine\GraphQLite\Http\Psr15GraphQLMiddlewareBuilder;
use TheCodingMachine\GraphQLite\Http\WebonyxGraphqlMiddleware;
use function extension_loaded;
Expand Down Expand Up @@ -112,9 +113,9 @@ public static function getMiddlewareBuilder(Schema $schema): Psr15GraphQLMiddlew
}

/**
* @Factory(tags={@Tag(name=MiddlewareListServiceProvider::MIDDLEWARES_QUEUE, priority=MiddlewareOrder::ROUTER)})
* @Factory(name=WebonyxGraphqlMiddleware::class,tags={@Tag(name=MiddlewareListServiceProvider::MIDDLEWARES_QUEUE, priority=MiddlewareOrder::ROUTER)})
*/
public static function getMiddleware(Psr15GraphQLMiddlewareBuilder $builder): WebonyxGraphqlMiddleware
public static function getMiddleware(Psr15GraphQLMiddlewareBuilder $builder): MiddlewareInterface
{
return $builder->createMiddleware();
}
Expand Down

0 comments on commit f1437c3

Please sign in to comment.