Skip to content

Commit 0d1d389

Browse files
authored
Merge pull request #4812 from soyuka/merge-2.7
Merge 2.7
2 parents bc90bf9 + cc840e1 commit 0d1d389

File tree

2 files changed

+35
-16
lines changed

2 files changed

+35
-16
lines changed

CHANGELOG.md

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
# Changelog
2+
=======
3+
4+
## 2.7.0-beta.3
5+
6+
* Metadata: use the HTTP method instead of an interface for writability (#4785)
7+
* Cache: IriConverter gets called only for resources (#4796)
8+
* JsonApi: Use skolem IRIs (#4796)
9+
* Metadata: Merge defaults instead of overriding (#4796)
10+
* ApiTestCase: Fix JSON Schema assertions (#4796)
11+
* Metadata: Cast YAML/XML values properly (#4800)
12+
* Symfony: fix deprecations (#4795 #4801 #4802)
13+
* Input/Output: backport serializer changes to make input/output work as resource classes without data transformers (#4804)
14+
* GraphQl: the SerializerContextBuilder interface changes to reflect operation instead of the operation name **BC** (#4804)
15+
16+
## 2.7.0-beta.2
17+
18+
* Processor: adds `previous_data` to the context (#4776)
19+
* Doctrine: fix filter binding (#4789)
20+
* Cache: fix headers not being read from metadata (#4777)
221

322
## 2.7.0-beta
423

5-
Json-Ld: property metadata types and iris (#4769)
6-
Symfony: write listener uri variables converter (#4774)
7-
Metadata: extra properties operation inheritance (#4773)
24+
* Json-Ld: property metadata types and iris (#4769)
25+
* Symfony: write listener uri variables converter (#4774)
26+
* Metadata: extra properties operation inheritance (#4773)
827

928
**BC**
1029

@@ -14,17 +33,17 @@ Doctrine: new interfaces for Filters and Extensions ready, switch to the `ApiPla
1433

1534
## 2.7.0-alpha.7
1635

17-
Metadata: defaults deprecation (#4772)
36+
* Metadata: defaults deprecation (#4772)
1837

1938
## 2.7.0-alpha.6
2039

21-
GraphQl: output creates its own type in TypeBuilder (#4766)
22-
Metadata: clear missing metadata cache pools (#4770)
23-
Metadata: property override when value is set (#4767)
24-
Metadata: add read and write to extractor (#4760)
25-
JsonSchema: factory backward compatibility layer (#4758)
26-
Metadata: defaults properly overrides metadata (#4759)
27-
Metadata: Add missing processor and provider to extractor (#4754)
40+
* GraphQl: output creates its own type in TypeBuilder (#4766)
41+
* Metadata: clear missing metadata cache pools (#4770)
42+
* Metadata: property override when value is set (#4767)
43+
* Metadata: add read and write to extractor (#4760)
44+
* JsonSchema: factory backward compatibility layer (#4758)
45+
* Metadata: defaults properly overrides metadata (#4759)
46+
* Metadata: Add missing processor and provider to extractor (#4754)
2847

2948
## 2.7.0-alpha.5
3049

src/Metadata/Resource/ResourceMetadataCollection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ public function __construct(string $resourceClass, array $input = [])
3636

3737
public function getOperation(?string $operationName = null, bool $forceCollection = false, bool $httpOperation = false): Operation
3838
{
39-
if (isset($this->operationCache[$operationName ?? ''])) {
40-
return $this->operationCache[$operationName ?? ''];
39+
$operationName = $operationName ?? '';
40+
if (isset($this->operationCache[$operationName])) {
41+
return $this->operationCache[$operationName];
4142
}
4243

43-
if (isset($this->operationCache['graphql_'.($operationName ?? '')])) {
44-
return $this->operationCache['graphql_'.($operationName ?? '')];
44+
if (isset($this->operationCache['graphql_'.$operationName])) {
45+
return $this->operationCache['graphql_'.$operationName];
4546
}
4647

4748
$it = $this->getIterator();
4849
$metadata = null;
49-
$operationName = $operationName ?? '';
5050

5151
while ($it->valid()) {
5252
/** @var ApiResource */

0 commit comments

Comments
 (0)