Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09e3c5c

Browse files
committed
feature #54788 [TypeInfo] mark classes as experimental (soyuka)
This PR was merged into the 7.1 branch. Discussion ---------- [TypeInfo] mark classes as experimental | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT This is following a discussion on slack with authors of the component, I feel that the TypeInfo component should have an experimental phase as we need to prove the component's functionality on software that is built on top of type information extraction. Here's a non-exhaustive list of software using the PropertyInfo Type class (thanks to `@mtarld`): - api-platform/core - nelmio/api-doc-bundle - typo3/cms-extbase - typo3/cms - sonata-project/page-bundle - jolicode/automapper - symfony/ux-live-component These softwares should try their best in testing the new TypeInfo component and report back misfunctionalities and/or DX improvements before we can consider this non-experimental. See also #54789 Commits ------- 28b6495 [TypeInfo] mark classes as experimental
2 parents 29b00c2 + 28b6495 commit 09e3c5c

23 files changed

+48
-1
lines changed

src/Symfony/Component/TypeInfo/CHANGELOG.md

+1-1
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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17+
*
18+
* @experimental
1719
*/
1820
interface ExceptionInterface extends \Throwable
1921
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17+
*
18+
* @experimental
1719
*/
1820
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
1921
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17+
*
18+
* @experimental
1719
*/
1820
class LogicException extends \LogicException implements ExceptionInterface
1921
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17+
*
18+
* @experimental
1719
*/
1820
class RuntimeException extends \RuntimeException implements ExceptionInterface
1921
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* @author Mathias Arlaud <[email protected]>
1616
* @author Baptiste Leduc <[email protected]>
17+
*
18+
* @experimental
1719
*/
1820
class UnsupportedException extends \LogicException implements ExceptionInterface
1921
{

src/Symfony/Component/TypeInfo/README.md

+5
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

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* @author Mathias Arlaud <[email protected]>
1919
* @author Baptiste Leduc <[email protected]>
20+
*
21+
* @experimental
2022
*/
2123
abstract class Type implements \Stringable
2224
{

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

+2
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

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* @author Baptiste Leduc <[email protected]>
2121
*
2222
* @template T of TypeIdentifier
23+
*
24+
* @experimental
2325
*/
2426
final class BuiltinType extends Type
2527
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* @author Baptiste Leduc <[email protected]>
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

+2
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

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* @author Baptiste Leduc <[email protected]>
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

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* @author Baptiste Leduc <[email protected]>
2020
*
2121
* @template T of Type
22+
*
23+
* @experimental
2224
*/
2325
final class IntersectionType extends Type
2426
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* @author Baptiste Leduc <[email protected]>
2020
*
2121
* @template T of class-string
22+
*
23+
* @experimental
2224
*/
2325
class ObjectType extends Type
2426
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*
2020
* @author Mathias Arlaud <[email protected]>
2121
* @author Baptiste Leduc <[email protected]>
22+
*
23+
* @experimental
2224
*/
2325
final class TemplateType extends Type
2426
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* @author Baptiste Leduc <[email protected]>
2020
*
2121
* @template T of Type
22+
*
23+
* @experimental
2224
*/
2325
final class UnionType extends Type
2426
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
*
2323
* @author Mathias Arlaud <[email protected]>
2424
* @author Baptiste Leduc <[email protected]>
25+
*
26+
* @experimental
2527
*/
2628
final class TypeContext
2729
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
*
2828
* @author Mathias Arlaud <[email protected]>
2929
* @author Baptiste Leduc <[email protected]>
30+
*
31+
* @experimental
3032
*/
3133
final class TypeContextFactory
3234
{

src/Symfony/Component/TypeInfo/TypeFactoryTrait.php

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
*
2727
* @author Mathias Arlaud <[email protected]>
2828
* @author Baptiste Leduc <[email protected]>
29+
*
30+
* @experimental
2931
*/
3032
trait TypeFactoryTrait
3133
{

src/Symfony/Component/TypeInfo/TypeIdentifier.php

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*
1717
* @author Mathias Arlaud <[email protected]>
1818
* @author Baptiste Leduc <[email protected]>
19+
*
20+
* @experimental
1921
*/
2022
enum TypeIdentifier: string
2123
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*
2424
* @author Mathias Arlaud <[email protected]>
2525
* @author Baptiste Leduc <[email protected]>
26+
*
27+
* @experimental
2628
*/
2729
final readonly class TypeResolver implements TypeResolverInterface
2830
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*
2121
* @author Mathias Arlaud <[email protected]>
2222
* @author Baptiste Leduc <[email protected]>
23+
*
24+
* @experimental
2325
*/
2426
interface TypeResolverInterface
2527
{

0 commit comments

Comments
 (0)