Skip to content

Commit 11deb0c

Browse files
committed
📦 Make IDE happy
1 parent 094c557 commit 11deb0c

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/Controller/GraphQLiteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function handleRequest(Request $request): Response
7878
{
7979
$psr7Request = $this->httpMessageFactory->createRequest($request);
8080

81-
if (strtoupper($request->getMethod()) === "POST" && empty($psr7Request->getParsedBody())) {
81+
if (strtoupper($request->getMethod()) === 'POST' && empty($psr7Request->getParsedBody())) {
8282
$content = $psr7Request->getBody()->getContents();
8383
$parsedBody = json_decode($content, true);
8484
if (json_last_error() !== JSON_ERROR_NONE) {

src/Mappers/RequestParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RequestParameter implements ParameterInterface
1616
* @param array<string, mixed> $args
1717
* @param mixed $context
1818
*/
19-
public function resolve(?object $source, array $args, $context, ResolveInfo $info): mixed
19+
public function resolve(?object $source, array $args, mixed $context, ResolveInfo $info): mixed
2020
{
2121
if (!$context instanceof SymfonyRequestContextInterface) {
2222
throw new GraphQLException('Cannot type-hint on a Symfony Request object in your query/mutation/field. The request context must implement SymfonyRequestContextInterface.');

src/Security/AuthorizationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(?AuthorizationCheckerInterface $authorizationChecker
3030
*
3131
* @param mixed $subject The scope this right applies on. $subject is typically an object or a FQCN. Set $subject to "null" if the right is global.
3232
*/
33-
public function isAllowed(string $right, $subject = null): bool
33+
public function isAllowed(string $right, mixed $subject = null): bool
3434
{
3535
if ($this->authorizationChecker === null || $this->tokenStorage === null) {
3636
throw new \LogicException('The SecurityBundle is not registered in your application. Try running "composer require symfony/security-bundle".');

src/Types/SymfonyUserInterfaceType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33

44
namespace TheCodingMachine\GraphQLite\Bundle\Types;
55

6-
use Symfony\Component\Security\Core\Role\Role;
76
use TheCodingMachine\GraphQLite\Annotations\Field;
87
use TheCodingMachine\GraphQLite\Annotations\Type;
98
use Symfony\Component\Security\Core\User\UserInterface;
10-
use TheCodingMachine\GraphQLite\FieldNotFoundException;
119

1210
#[Type(class: UserInterface::class)]
1311
class SymfonyUserInterfaceType

0 commit comments

Comments
 (0)