Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09e3c5c

Browse filesBrowse 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
Copy full SHA for 09e3c5c

23 files changed

+48
-1
lines changed

‎src/Symfony/Component/TypeInfo/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/CHANGELOG.md
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Exception/ExceptionInterface.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Exception/InvalidArgumentException.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Exception/LogicException.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Exception/RuntimeException.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Exception/UnsupportedException.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/README.md
+5Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/BackedEnumType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/BuiltinType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/CollectionType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/EnumType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/GenericType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/IntersectionType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/ObjectType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/TemplateType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/Type/UnionType.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeContext/TypeContext.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeContext/TypeContextFactory.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeFactoryTrait.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeIdentifier.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeResolver/TypeResolver.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeResolver/TypeResolverInterface.php
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.