Skip to content

Commit 5356de0

Browse files
authored
Merge pull request #840 from mcg-web/remove-deprecations
Remove deprecations
2 parents d7184a3 + 0e88c04 commit 5356de0

File tree

7 files changed

+13
-190
lines changed

7 files changed

+13
-190
lines changed

UPGRADE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ 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)
16+
- [Remove ConnectionBuilder deprecated class](#remove-connectionbuilder-deprecated-class)
1517

1618
### Customize the cursor encoder of the edges of a connection
1719

@@ -199,6 +201,15 @@ Example:
199201
}
200202
```
201203

204+
### Remove Argument deprecated method
205+
206+
Method `Overblog\GraphQLBundle\Definition\Argument::getRawArguments` is replaced by
207+
`Overblog\GraphQLBundle\Definition\Argument::getArrayCopy`.
208+
209+
### Remove ConnectionBuilder deprecated class
210+
211+
Class `Overblog\GraphQLBundle\Relay\Connection\Output\ConnectionBuilder` is replaced by
212+
`Overblog\GraphQLBundle\Relay\Connection\ConnectionBuilder`.
202213

203214
UPGRADE FROM 0.12 to 0.13
204215
=======================

src/Definition/Argument.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
use function array_key_exists;
88
use function count;
9-
use function sprintf;
10-
use function trigger_error;
11-
use const E_USER_DEPRECATED;
129

1310
class 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
*/

src/Relay/Connection/Output/ConnectionBuilder.php

Lines changed: 0 additions & 97 deletions
This file was deleted.

tests/Definition/ArgumentTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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
}

tests/Functional/App/config/defaultValue/mapping/Mutation.types.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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!

tests/Relay/Connection/Output/ConnectionBuilderFromPromisedTest.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/Relay/Connection/Output/ConnectionBuilderTest.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)