File tree Expand file tree Collapse file tree 4 files changed +8
-32
lines changed
Functional/App/config/defaultValue/mapping Expand file tree Collapse file tree 4 files changed +8
-32
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ UPGRADE FROM 0.13 to 0.14
1212- [ Replace ` overblog_graphql.global_variable ` tag] ( #replace-overblog_graphqlglobal_variable-tag )
1313- [ Replace ` resolver ` expression function] ( #replace-resolver-expression-function )
1414- [ Rename ` ResolverInterface ` to ` QueryInterface ` ] ( #rename-resolverinterface-to-queryinterface )
15+ - [ Remove Argument deprecated method] ( #remove-argument-deprecated-method )
1516
1617### Customize the cursor encoder of the edges of a connection
1718
@@ -199,6 +200,11 @@ Example:
199200}
200201```
201202
203+ ### Remove Argument deprecated method
204+
205+ Method ` Overblog\GraphQLBundle\Definition\Argument::getRawArguments ` is replaced by
206+ ` Overblog\GraphQLBundle\Definition\Argument::getArrayCopy ` .
207+
202208
203209UPGRADE FROM 0.12 to 0.13
204210=======================
Original file line number Diff line number Diff line change 66
77use function array_key_exists ;
88use function count ;
9- use function sprintf ;
10- use function trigger_error ;
11- use const E_USER_DEPRECATED ;
129
1310class Argument implements ArgumentInterface
1411{
@@ -32,23 +29,6 @@ public function getArrayCopy(): array
3229 return $ this ->rawArguments ;
3330 }
3431
35- /**
36- * @deprecated This method is deprecated since 0.12 and will be removed in 0.13. You should use getArrayCopy method instead.
37- */
38- public function getRawArguments (): array
39- {
40- @trigger_error (
41- sprintf (
42- 'This "%s" method is deprecated since 0.12 and will be removed in 0.13. You should use "%s::getArrayCopy" instead. ' ,
43- __METHOD__ ,
44- __CLASS__
45- ),
46- E_USER_DEPRECATED
47- );
48-
49- return $ this ->getArrayCopy ();
50- }
51-
5232 /**
5333 * @param int|string $offset
5434 */
Original file line number Diff line number Diff line change @@ -54,14 +54,4 @@ public function testGetRawArgs(): void
5454 {
5555 $ this ->assertSame ($ this ->rawArgs , $ this ->argument ->getArrayCopy ());
5656 }
57-
58- /**
59- * @group legacy
60- *
61- * @expectedDeprecation This "%s" method is deprecated since 0.12 and will be removed in 0.13. You should use "%s::getArrayCopy" instead.
62- */
63- public function testDeprecatedGetRawArgs (): void
64- {
65- $ this ->assertSame ($ this ->rawArgs , $ this ->argument ->getRawArguments ());
66- }
6757}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Mutation:
1111 defaultValue : ' foo'
1212 isStringNull :
1313 type : Boolean!
14- resolve : " @=null === args.getRawArguments ()['string']"
14+ resolve : " @=null === args.getArrayCopy ()['string']"
1515 args :
1616 string :
1717 type : String
@@ -24,7 +24,7 @@ Mutation:
2424 type : EchoInput!
2525 isStringNullUsingInput :
2626 type : Boolean!
27- resolve : " @=null === args.getRawArguments ()['input']['string']"
27+ resolve : " @=null === args.getArrayCopy ()['input']['string']"
2828 args :
2929 input :
3030 type : isStringNullInput!
You can’t perform that action at this time.
0 commit comments