Skip to content

Commit bda20ed

Browse files
authored
Merge pull request #4909 from soyuka/2.7
2.7 small fixes and tests
2 parents bfae6fd + 72d0aa8 commit bda20ed

File tree

270 files changed

+307
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+307
-101
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ parameters:
1818
excludePaths:
1919
- src/deprecation.php
2020
- src/Core/Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetLegacy.php
21+
- src/Util/ResponseTrait71.php
2122
# Class ... extends final class cannot be ignored...
2223
- src/Core/Action/EntrypointAction.php
2324
- src/Core/Action/ExceptionAction.php

src/Core/Annotation/ApiFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Antoine Bluchet <[email protected]>
2323
*
2424
* @Annotation
25+
*
2526
* @Target({"PROPERTY", "CLASS"})
2627
*/
2728
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]

src/Core/Annotation/ApiProperty.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @author Kévin Dunglas <[email protected]>
2222
*
2323
* @Annotation
24+
*
2425
* @Target({"METHOD", "PROPERTY"})
2526
* @Attributes(
2627
* @Attribute("deprecationReason", type="string"),

src/Core/Annotation/ApiResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @author Kévin Dunglas <[email protected]>
2222
*
2323
* @Annotation
24+
*
2425
* @Target({"CLASS"})
2526
* @Attributes(
2627
* @Attribute("accessControl", type="string"),

src/Core/Annotation/ApiSubresource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* @author Antoine Bluchet <[email protected]>
2020
*
2121
* @Annotation
22+
*
2223
* @Target({"METHOD", "PROPERTY"})
2324
* @Attributes(
2425
* @Attribute("maxDepth", type="int"),

src/Core/Bridge/Doctrine/Common/PropertyHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected function splitPropertyParts(string $property/* , string $resourceClass
128128
/**
129129
* Gets the Doctrine Type of a given property/resourceClass.
130130
*
131-
* @return Type|string|null
131+
* @return string|null
132132
*/
133133
protected function getDoctrineFieldType(string $property, string $resourceClass)
134134
{

src/Core/Bridge/Doctrine/Orm/CollectionDataProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*
3030
* @author Kévin Dunglas <[email protected]>
3131
* @author Samuel ROZE <[email protected]>
32+
*
3233
* @final
3334
*/
3435
class CollectionDataProvider implements ContextAwareCollectionDataProviderInterface, RestrictedDataProviderInterface

src/Core/Bridge/Doctrine/Orm/ItemDataProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
*
3838
* @author Kévin Dunglas <[email protected]>
3939
* @author Samuel ROZE <[email protected]>
40+
*
4041
* @final
4142
*/
4243
class ItemDataProvider implements DenormalizedIdentifiersAwareItemDataProviderInterface, RestrictedDataProviderInterface

src/Core/Upgrade/UpgradeApiFilterVisitor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ public function enterNode(Node $node)
9595
];
9696

9797
foreach ($this->readApiFilters($this->reflectionClass) as $annotation) {
98-
[$filterAnnotation,] = $annotation;
98+
[$filterAnnotation] = $annotation;
9999
if (isset($legacyNamespaces[$filterAnnotation->filterClass])) {
100100
$namespaces[] = $legacyNamespaces[$filterAnnotation->filterClass];
101101
}
102102
}
103103

104104
foreach ($this->reflectionClass->getProperties() as $reflectionProperty) {
105105
foreach ($this->readApiFilters($reflectionProperty) as $annotation) {
106-
[$filterAnnotation,] = $annotation;
106+
[$filterAnnotation] = $annotation;
107107
if (isset($legacyNamespaces[$filterAnnotation->filterClass])) {
108108
$namespaces[] = $legacyNamespaces[$filterAnnotation->filterClass];
109109
}

src/Metadata/ApiResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Resource metadata attribute.
2020
*
2121
* @author Antoine Bluchet <[email protected]>
22+
*
2223
* @experimental
2324
*/
2425
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]

0 commit comments

Comments
 (0)