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

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
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy