Skip to content

Commit aeb0926

Browse files
feature symfony#58852 [TypeInfo] Remove @experimental tag (mtarld)
This PR was merged into the 7.2 branch. Discussion ---------- [TypeInfo] Remove ``@experimental`` tag | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT - Unmark ``@experimental`` for TypeInfo component - Remove ``@internal`` tag over type resolvers, as they must be able to be used over other components Commits ------- 8457daf [TypeInfo] Remove ``@experimental`` tag
2 parents 4413b2a + 8457daf commit aeb0926

38 files changed

+2
-89
lines changed

src/Symfony/Component/PropertyInfo/Extractor/ConstructorExtractor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function __construct(
2929
) {
3030
}
3131

32-
/**
33-
* @experimental
34-
*/
3532
public function getType(string $class, string $property, array $context = []): ?Type
3633
{
3734
foreach ($this->extractors as $extractor) {

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ public function getTypesFromConstructor(string $class, string $property): ?array
194194
return array_merge([], ...$types);
195195
}
196196

197-
/**
198-
* @experimental
199-
*/
200197
public function getType(string $class, string $property, array $context = []): ?Type
201198
{
202199
/** @var DocBlock $docBlock */
@@ -256,9 +253,6 @@ public function getType(string $class, string $property, array $context = []): ?
256253
return Type::list($type);
257254
}
258255

259-
/**
260-
* @experimental
261-
*/
262256
public function getTypeFromConstructor(string $class, string $property): ?Type
263257
{
264258
if (!$docBlock = $this->getDocBlockFromConstructor($class, $property)) {

src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ public function getTypesFromConstructor(string $class, string $property): ?array
185185
return $types;
186186
}
187187

188-
/**
189-
* @experimental
190-
*/
191188
public function getType(string $class, string $property, array $context = []): ?Type
192189
{
193190
/** @var PhpDocNode|null $docNode */
@@ -234,9 +231,6 @@ public function getType(string $class, string $property, array $context = []): ?
234231
return Type::list($type);
235232
}
236233

237-
/**
238-
* @experimental
239-
*/
240234
public function getTypeFromConstructor(string $class, string $property): ?Type
241235
{
242236
if (!$tagDocNode = $this->getDocBlockFromConstructor($class, $property)) {

src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ public function getTypesFromConstructor(string $class, string $property): ?array
205205
return $types;
206206
}
207207

208-
/**
209-
* @experimental
210-
*/
211208
public function getType(string $class, string $property, array $context = []): ?Type
212209
{
213210
[$mutatorReflection, $prefix] = $this->getMutatorMethod($class, $property);
@@ -269,9 +266,6 @@ public function getType(string $class, string $property, array $context = []): ?
269266
return $type;
270267
}
271268

272-
/**
273-
* @experimental
274-
*/
275269
public function getTypeFromConstructor(string $class, string $property): ?Type
276270
{
277271
try {

src/Symfony/Component/PropertyInfo/PropertyInfoCacheExtractor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ public function getProperties(string $class, array $context = []): ?array
5656
return $this->extract('getProperties', [$class, $context]);
5757
}
5858

59-
/**
60-
* @experimental
61-
*/
6259
public function getType(string $class, string $property, array $context = []): ?Type
6360
{
6461
return $this->extract('getType', [$class, $property, $context]);

src/Symfony/Component/PropertyInfo/PropertyInfoExtractor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ public function getLongDescription(string $class, string $property, array $conte
5353
return $this->extract($this->descriptionExtractors, 'getLongDescription', [$class, $property, $context]);
5454
}
5555

56-
/**
57-
* @experimental
58-
*/
5956
public function getType(string $class, string $property, array $context = []): ?Type
6057
{
6158
return $this->extract($this->typeExtractors, 'getType', [$class, $property, $context]);

src/Symfony/Component/PropertyInfo/Util/PhpDocTypeHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ public function getTypes(DocType $varType): array
106106

107107
/**
108108
* Creates a {@see Type} from a PHPDoc type.
109-
*
110-
* @experimental
111109
*/
112110
public function getType(DocType $varType): ?Type
113111
{

src/Symfony/Component/TypeInfo/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CHANGELOG
1212
* Remove `Type::getBaseType()`, `Type::asNonNullable()` and `Type::__call()` methods
1313
* Remove `CompositeTypeTrait`
1414
* Add `PhpDocAwareReflectionTypeResolver` resolver
15+
* The type resolvers are not marked as `@internal` anymore
16+
* The component is not marked as `@experimental` anymore
1517

1618
7.1
1719
---

src/Symfony/Component/TypeInfo/Exception/ExceptionInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17-
*
18-
* @experimental
1917
*/
2018
interface ExceptionInterface extends \Throwable
2119
{

src/Symfony/Component/TypeInfo/Exception/InvalidArgumentException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17-
*
18-
* @experimental
1917
*/
2018
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
2119
{

0 commit comments

Comments
 (0)