8000 [TypeInfo] mark classes as experimental · symfony/symfony@28b6495 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28b6495

Browse files
soyukafabpot
authored andcommitted
[TypeInfo] mark classes as experimental
1 parent c168c2c commit 28b6495

23 files changed

+48
-1
lines changed

src/Symfony/Component/TypeInfo/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CHANGELOG
44
7.1
55
---
66

7-
* Add the component
7+
* Add the component as experimental

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1616
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
17+
*
18+
* @experimental
1719
*/
1820
interface ExceptionInterface extends \Throwable
1921
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1616
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
17+
*
18+
* @experimental
1719
*/
1820
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
1921
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1616
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
17+
*
18+
* @experimental
1719
*/
1820
class LogicException extends \LogicException implements ExceptionInterface
1921
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1616
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
17+
*
18+
* @experimental
1719
*/
1820
class RuntimeException extends \RuntimeException implements ExceptionInterface
1921
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1616
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
17+
*
18+
* @experimental
1719
*/
1820
class UnsupportedException extends \LogicException implements ExceptionInterface
1921
{

src/Symfony/Component/TypeInfo/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ TypeInfo Component
33

44
The TypeInfo component extracts PHP types information.
55

6+
**This Component is experimental**.
7+
[Experimental features](https://symfony.com/doc/current/contributing/code/experimental.html)
8+
are not covered by Symfony's
9+
[Backward Compatibility Promise](https://symfony.com/doc/current/contributing/code/bc.html).
10+
611
Getting Started
712
---------------
813

src/Symfony/Component/TypeInfo/Type.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1919
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
20+
*
21+
* @experimental
2022
*/
2123
abstract class Type implements \Stringable
2224
{

src/Symfony/Component/TypeInfo/Type/BackedEnumType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @template U of BuiltinType<TypeIdentifier::INT>|BuiltinType<TypeIdentifier::STRING>
2222
*
2323
* @extends EnumType<T>
24+
*
25+
* @experimental
2426
*/
2527
final class BackedEnumType extends EnumType
2628
{

src/Symfony/Component/TypeInfo/Type/BuiltinType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2121
*
2222
* @template T of TypeIdentifier
23+
*
24+
* @experimental
2325
*/
2426
final class BuiltinType extends Type
2527
{

src/Symfony/Component/TypeInfo/Type/CollectionType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2525
*
2626
* @template T of BuiltinType<TypeIdentifier::ARRAY>|BuiltinType<TypeIdentifier::ITERABLE>|ObjectType|GenericType
27+
*
28+
* @experimental
2729
*/
2830
final class CollectionType extends Type
2931
{

src/Symfony/Component/TypeInfo/Type/EnumType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* @template T of class-string<\UnitEnum>
1919
*
2020
* @extends ObjectType<T>
21+
*
22+
* @experimental
2123
*/
2224
class EnumType extends ObjectType
2325
{

src/Symfony/Component/TypeInfo/Type/GenericType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2424
*
2525
* @template T of BuiltinType<TypeIdentifier::ARRAY>|BuiltinType<TypeIdentifier::ITERABLE>|ObjectType
26+
*
27+
* @experimental
2628
*/
2729
final class GenericType extends Type
2830
{

src/Symfony/Component/TypeInfo/Type/IntersectionType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2020
*
2121
* @template T of Type
22+
*
23+
* @experimental
2224
*/
2325
final class IntersectionType extends Type
2426
{

src/Symfony/Component/TypeInfo/Type/ObjectType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2020
*
2121
* @template T of class-string
22+
*
23+
* @experimental
2224
*/
2325
class ObjectType extends Type
2426
{

src/Symfony/Component/TypeInfo/Type/TemplateType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*
2020
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2121
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
22+
*
23+
* @experimental
2224
*/
2325
final class TemplateType extends Type
2426
{

src/Symfony/Component/TypeInfo/Type/UnionType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2020
*
2121
* @template T of Type
22+
*
23+
* @experimental
2224
*/
2325
final class UnionType extends Type
2426
{

src/Symfony/Component/TypeInfo/TypeContext/TypeContext.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
*
2323
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2424
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
25+
*
26+
* @experimental
2527
*/
2628
final class TypeContext
2729
{

src/Symfony/Component/TypeInfo/TypeContext/TypeContextFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
*
2828
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2929
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
30+
*
31+
* @experimental
3032
*/
3133
final class TypeContextFactory
3234
{

src/Symfony/Component/TypeInfo/TypeFactoryTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
*
2727
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2828
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
29+
*
30+
* @experimental
2931
*/
3032
trait TypeFactoryTrait
3133
{

src/Symfony/Component/TypeInfo/TypeIdentifier.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*
1717
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
1818
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
19+
*
20+
* @experimental
1921
*/
2022
enum TypeIdentifier: string
2123
{

src/Symfony/Component/TypeInfo/TypeResolver/TypeResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*
2424
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2525
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
26+
*
27+
* @experimental
2628
*/
2729
final readonly class TypeResolver implements TypeResolverInterface
2830
{

src/Symfony/Component/TypeInfo/TypeResolver/TypeResolverInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*
2121
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2222
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
23+
*
24+
* @experimental
2325
*/
2426
interface TypeResolverInterface
2527
{

0 commit comments

Comments
 (0)
0