Skip to content

Commit 6dfd584

Browse files
committed
Fix deprecations
1 parent fa9b578 commit 6dfd584

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

src/Relay/Connection/Output/Connection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Overblog\GraphQLBundle\Relay\Connection\Output;
66

7+
use AllowDynamicProperties;
78
use GraphQL\Executor\Promise\Promise;
89
use Overblog\GraphQLBundle\Relay\Connection\ConnectionInterface;
910
use Overblog\GraphQLBundle\Relay\Connection\EdgeInterface;
@@ -14,6 +15,7 @@
1415
*
1516
* @phpstan-implements ConnectionInterface<T>
1617
*/
18+
#[AllowDynamicProperties]
1719
class Connection implements ConnectionInterface
1820
{
1921
use DeprecatedPropertyPublicAccessTrait;

src/Relay/Node/PluralIdentifyingRootFieldDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public function toMappingDefinition(array $config): array
3636
$argName = $config['argName'];
3737

3838
return [
39-
'type' => "[${config['outputType']}]",
40-
'args' => [$argName => ['type' => "[${config['inputType']}!]!"]],
39+
'type' => "[{$config['outputType']}]",
40+
'args' => [$argName => ['type' => "[{$config['inputType']}!]!"]],
4141
'resolve' => sprintf(
4242
"@=query('relay_plural_identifying_field', args.$argName, context, info, resolveSingleInputCallback(%s))",
4343
$this->cleanResolveSingleInput($config['resolveSingleInput'])

src/Validator/ValidationNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Overblog\GraphQLBundle\Validator;
66

7+
use AllowDynamicProperties;
78
use GraphQL\Type\Definition\InputObjectType;
89
use GraphQL\Type\Definition\NamedType;
910
use GraphQL\Type\Definition\ObjectType;
@@ -24,6 +25,7 @@
2425
* It also contains variables of the resolver context, in which this class was
2526
* instantiated.
2627
*/
28+
#[AllowDynamicProperties]
2729
final class ValidationNode
2830
{
2931
private const KNOWN_VAR_NAMES = ['value', 'args', 'context', 'info'];

tests/ExpressionLanguage/ExpressionFunction/Security/GetUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Overblog\GraphQLBundle\Generator\TypeGenerator;
99
use Overblog\GraphQLBundle\Security\Security;
1010
use Overblog\GraphQLBundle\Tests\ExpressionLanguage\TestCase;
11+
use Symfony\Bundle\SecurityBundle\Security as CoreSecurity;
1112
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1213
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
13-
use Symfony\Component\Security\Core\Security as CoreSecurity;
1414
use Symfony\Component\Security\Core\User\InMemoryUser;
1515
use Symfony\Component\Security\Core\User\User;
1616
use Symfony\Component\Security\Core\User\UserInterface;

tests/ExpressionLanguage/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
use PHPUnit\Framework\MockObject\Rule\InvokedCount;
1717
use PHPUnit\Framework\MockObject\Stub;
1818
use PHPUnit\Framework\TestCase as BaseTestCase;
19+
use Symfony\Bundle\SecurityBundle\Security as CoreSecurity;
1920
use Symfony\Component\ExpressionLanguage\Expression;
2021
use Symfony\Component\ExpressionLanguage\ExpressionFunction;
21-
use Symfony\Component\Security\Core\Security as CoreSecurity;
2222

2323
use function array_keys;
2424
use function call_user_func_array;

tests/Functional/App/config/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ framework:
66
utf8: true
77
profiler:
88
enabled: false
9+
http_method_override: false
910

1011
security:
11-
enable_authenticator_manager: true
1212
providers:
1313
in_memory:
1414
memory:

0 commit comments

Comments
 (0)