[String] Remove the @experimental status

This commit is contained in:
Thomas Calvet 2020-02-06 17:58:08 +01:00
parent e87f86b550
commit 3d15f91723
13 changed files with 1 additions and 34 deletions

View File

@ -26,8 +26,6 @@ use Symfony\Component\String\Exception\RuntimeException;
* @author Hugo Hamon <hugohamon@neuf.fr>
*
* @throws ExceptionInterface
*
* @experimental in 5.0
*/
abstract class AbstractString implements \JsonSerializable
{

View File

@ -25,8 +25,6 @@ use Symfony\Component\String\Exception\RuntimeException;
* @author Nicolas Grekas <p@tchwork.com>
*
* @throws ExceptionInterface
*
* @experimental in 5.0
*/
abstract class AbstractUnicodeString extends AbstractString
{

View File

@ -22,8 +22,6 @@ use Symfony\Component\String\Exception\RuntimeException;
* @author Hugo Hamon <hugohamon@neuf.fr>
*
* @throws ExceptionInterface
*
* @experimental in 5.0
*/
class ByteString extends AbstractString
{

View File

@ -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
-----

View File

@ -21,8 +21,6 @@ use Symfony\Component\String\Exception\InvalidArgumentException;
* @author Hugo Hamon <hugohamon@neuf.fr>
*
* @throws ExceptionInterface
*
* @experimental in 5.0
*/
class CodePointString extends AbstractUnicodeString
{

View File

@ -11,9 +11,6 @@
namespace Symfony\Component\String\Exception;
/**
* @experimental in 5.0
*/
interface ExceptionInterface extends \Throwable
{
}

View File

@ -11,9 +11,6 @@
namespace Symfony\Component\String\Exception;
/**
* @experimental in 5.0
*/
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}

View File

@ -11,9 +11,6 @@
namespace Symfony\Component\String\Exception;
/**
* @experimental in 5.0
*/
class RuntimeException extends \RuntimeException implements ExceptionInterface
{
}

View File

@ -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
---------

View File

@ -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);

View File

@ -17,8 +17,6 @@ use Symfony\Contracts\Translation\LocaleAwareInterface;
/**
* @author Titouan Galopin <galopintitouan@gmail.com>
*
* @experimental in 5.0
*/
class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
{

View File

@ -17,8 +17,6 @@ use Symfony\Component\String\AbstractUnicodeString;
* Creates a URL-friendly slug from a given string.
*
* @author Titouan Galopin <galopintitouan@gmail.com>
*
* @experimental in 5.0
*/
interface SluggerInterface
{

View File

@ -29,8 +29,6 @@ use Symfony\Component\String\Exception\InvalidArgumentException;
* @author Hugo Hamon <hugohamon@neuf.fr>
*
* @throws ExceptionInterface
*
* @experimental in 5.0
*/
class UnicodeString extends AbstractUnicodeString
{