diff --git a/src/Symfony/Component/String/AbstractString.php b/src/Symfony/Component/String/AbstractString.php index 47deb5aba2..bdae34dd8b 100644 --- a/src/Symfony/Component/String/AbstractString.php +++ b/src/Symfony/Component/String/AbstractString.php @@ -26,8 +26,6 @@ use Symfony\Component\String\Exception\RuntimeException; * @author Hugo Hamon * * @throws ExceptionInterface - * - * @experimental in 5.0 */ abstract class AbstractString implements \JsonSerializable { diff --git a/src/Symfony/Component/String/AbstractUnicodeString.php b/src/Symfony/Component/String/AbstractUnicodeString.php index 5b8b87252f..95afa624d9 100644 --- a/src/Symfony/Component/String/AbstractUnicodeString.php +++ b/src/Symfony/Component/String/AbstractUnicodeString.php @@ -25,8 +25,6 @@ use Symfony\Component\String\Exception\RuntimeException; * @author Nicolas Grekas * * @throws ExceptionInterface - * - * @experimental in 5.0 */ abstract class AbstractUnicodeString extends AbstractString { diff --git a/src/Symfony/Component/String/ByteString.php b/src/Symfony/Component/String/ByteString.php index eb42893a14..b810be1338 100644 --- a/src/Symfony/Component/String/ByteString.php +++ b/src/Symfony/Component/String/ByteString.php @@ -22,8 +22,6 @@ use Symfony\Component\String\Exception\RuntimeException; * @author Hugo Hamon * * @throws ExceptionInterface - * - * @experimental in 5.0 */ class ByteString extends AbstractString { diff --git a/src/Symfony/Component/String/CHANGELOG.md b/src/Symfony/Component/String/CHANGELOG.md index e591d83c34..af29651c63 100644 --- a/src/Symfony/Component/String/CHANGELOG.md +++ b/src/Symfony/Component/String/CHANGELOG.md @@ -7,6 +7,7 @@ CHANGELOG * added the `AbstractString::reverse()` method * made `AbstractString::width()` follow POSIX.1-2001 * added `LazyString` which provides memoizing stringable objects + * The component is not marked as `@experimental` anymore. 5.0.0 ----- diff --git a/src/Symfony/Component/String/CodePointString.php b/src/Symfony/Component/String/CodePointString.php index d1ac915701..8f0034ac90 100644 --- a/src/Symfony/Component/String/CodePointString.php +++ b/src/Symfony/Component/String/CodePointString.php @@ -21,8 +21,6 @@ use Symfony\Component\String\Exception\InvalidArgumentException; * @author Hugo Hamon * * @throws ExceptionInterface - * - * @experimental in 5.0 */ class CodePointString extends AbstractUnicodeString { diff --git a/src/Symfony/Component/String/Exception/ExceptionInterface.php b/src/Symfony/Component/String/Exception/ExceptionInterface.php index e10a3f030b..361978656b 100644 --- a/src/Symfony/Component/String/Exception/ExceptionInterface.php +++ b/src/Symfony/Component/String/Exception/ExceptionInterface.php @@ -11,9 +11,6 @@ namespace Symfony\Component\String\Exception; -/** - * @experimental in 5.0 - */ interface ExceptionInterface extends \Throwable { } diff --git a/src/Symfony/Component/String/Exception/InvalidArgumentException.php b/src/Symfony/Component/String/Exception/InvalidArgumentException.php index fff6207f9c..6aa586bcf9 100644 --- a/src/Symfony/Component/String/Exception/InvalidArgumentException.php +++ b/src/Symfony/Component/String/Exception/InvalidArgumentException.php @@ -11,9 +11,6 @@ namespace Symfony\Component\String\Exception; -/** - * @experimental in 5.0 - */ class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface { } diff --git a/src/Symfony/Component/String/Exception/RuntimeException.php b/src/Symfony/Component/String/Exception/RuntimeException.php index 747db4dc9d..77cb091f9c 100644 --- a/src/Symfony/Component/String/Exception/RuntimeException.php +++ b/src/Symfony/Component/String/Exception/RuntimeException.php @@ -11,9 +11,6 @@ namespace Symfony\Component\String\Exception; -/** - * @experimental in 5.0 - */ class RuntimeException extends \RuntimeException implements ExceptionInterface { } diff --git a/src/Symfony/Component/String/README.md b/src/Symfony/Component/String/README.md index 4f3992a0b4..23ad86ad8f 100644 --- a/src/Symfony/Component/String/README.md +++ b/src/Symfony/Component/String/README.md @@ -4,11 +4,6 @@ String Component The String component provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way. -**This component is experimental**. -[Experimental features](https://symfony.com/doc/current/contributing/code/experimental.html) -are not covered by Symfony's -[Backward Compatibility Promise](https://symfony.com/doc/current/contributing/code/bc.html). - Resources --------- diff --git a/src/Symfony/Component/String/Resources/functions.php b/src/Symfony/Component/String/Resources/functions.php index 739b216e4f..6b05c461ae 100644 --- a/src/Symfony/Component/String/Resources/functions.php +++ b/src/Symfony/Component/String/Resources/functions.php @@ -11,17 +11,11 @@ namespace Symfony\Component\String; -/** - * @experimental in 5.0 - */ function u(string $string = ''): UnicodeString { return new UnicodeString($string); } -/** - * @experimental in 5.0 - */ function b(string $string = ''): ByteString { return new ByteString($string); diff --git a/src/Symfony/Component/String/Slugger/AsciiSlugger.php b/src/Symfony/Component/String/Slugger/AsciiSlugger.php index 5a33c465aa..cb6f5b2b12 100644 --- a/src/Symfony/Component/String/Slugger/AsciiSlugger.php +++ b/src/Symfony/Component/String/Slugger/AsciiSlugger.php @@ -17,8 +17,6 @@ use Symfony\Contracts\Translation\LocaleAwareInterface; /** * @author Titouan Galopin - * - * @experimental in 5.0 */ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface { diff --git a/src/Symfony/Component/String/Slugger/SluggerInterface.php b/src/Symfony/Component/String/Slugger/SluggerInterface.php index 35d96d044c..c679ed9331 100644 --- a/src/Symfony/Component/String/Slugger/SluggerInterface.php +++ b/src/Symfony/Component/String/Slugger/SluggerInterface.php @@ -17,8 +17,6 @@ use Symfony\Component\String\AbstractUnicodeString; * Creates a URL-friendly slug from a given string. * * @author Titouan Galopin - * - * @experimental in 5.0 */ interface SluggerInterface { diff --git a/src/Symfony/Component/String/UnicodeString.php b/src/Symfony/Component/String/UnicodeString.php index ada77caaae..485d6f0e2d 100644 --- a/src/Symfony/Component/String/UnicodeString.php +++ b/src/Symfony/Component/String/UnicodeString.php @@ -29,8 +29,6 @@ use Symfony\Component\String\Exception\InvalidArgumentException; * @author Hugo Hamon * * @throws ExceptionInterface - * - * @experimental in 5.0 */ class UnicodeString extends AbstractUnicodeString {