Skip to content

Commit 15d505f

Browse files
committed
Fix some minor code quality issues
1 parent 587f338 commit 15d505f

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

src/GraphQl/Resolver/ResourceAccessCheckerTrait.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111

1212
declare(strict_types=1);
1313

14-
/*
15-
* This file is part of the API Platform project.
16-
*
17-
* (c) Kévin Dunglas <[email protected]>
18-
*
19-
* For the full copyright and license information, please view the LICENSE
20-
* file that was distributed with this source code.
21-
*/
22-
2314
namespace ApiPlatform\Core\GraphQl\Resolver;
2415

2516
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;

src/Security/ResourceAccessChecker.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111

1212
declare(strict_types=1);
1313

14-
/*
15-
* This file is part of the API Platform project.
16-
*
17-
* (c) Kévin Dunglas <[email protected]>
18-
*
19-
* For the full copyright and license information, please view the LICENSE
20-
* file that was distributed with this source code.
21-
*/
22-
2314
namespace ApiPlatform\Core\Security;
2415

2516
use ApiPlatform\Core\Util\ClassInfoTrait;

src/Serializer/ResourceList.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
*/
1919
class ResourceList extends \ArrayObject
2020
{
21-
public function serialize()
21+
/**
22+
* {@inheritdoc}
23+
*/
24+
public function serialize(): ?string
2225
{
26+
return null;
2327
}
2428
}

tests/Fixtures/Query.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
*/
1919
class Query
2020
{
21-
public function getFirstResult()
21+
public function getFirstResult(): ?int
2222
{
23+
return null;
2324
}
2425

25-
public function getMaxResults()
26+
public function getMaxResults(): ?int
2627
{
28+
return null;
2729
}
2830
}

0 commit comments

Comments
 (0)