diff --git a/src/Symfony/Component/VarDumper/CHANGELOG.md b/src/Symfony/Component/VarDumper/CHANGELOG.md index bd57d799df..a4eb962fd3 100644 --- a/src/Symfony/Component/VarDumper/CHANGELOG.md +++ b/src/Symfony/Component/VarDumper/CHANGELOG.md @@ -9,6 +9,7 @@ CHANGELOG * added `ImagineCaster` and infrastructure to dump images * added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data * added `UuidCaster` + * made all casters final 4.3.0 ----- diff --git a/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php b/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php index f1f85b7e2b..1c6a42cd39 100644 --- a/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts Amqp related classes to array representation. * * @author Grégoire Pineau + * + * @final since Symfony 4.4 */ class AmqpCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/DOMCaster.php b/src/Symfony/Component/VarDumper/Caster/DOMCaster.php index 65151b4f4f..41e52d6b7c 100644 --- a/src/Symfony/Component/VarDumper/Caster/DOMCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/DOMCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts DOM related classes to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class DOMCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/DateCaster.php b/src/Symfony/Component/VarDumper/Caster/DateCaster.php index 0cc95a8b16..f2f5182662 100644 --- a/src/Symfony/Component/VarDumper/Caster/DateCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/DateCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts DateTimeInterface related classes to array representation. * * @author Dany Maillard + * + * @final since Symfony 4.4 */ class DateCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/DoctrineCaster.php b/src/Symfony/Component/VarDumper/Caster/DoctrineCaster.php index 696b87816e..7409508b00 100644 --- a/src/Symfony/Component/VarDumper/Caster/DoctrineCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/DoctrineCaster.php @@ -20,6 +20,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts Doctrine related classes to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class DoctrineCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/DsCaster.php b/src/Symfony/Component/VarDumper/Caster/DsCaster.php index 467aadfd76..11423c9b29 100644 --- a/src/Symfony/Component/VarDumper/Caster/DsCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/DsCaster.php @@ -20,6 +20,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts Ds extension classes to array representation. * * @author Jáchym Toušek + * + * @final since Symfony 4.4 */ class DsCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php b/src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php index 5c2ae7daee..d62f7699d4 100644 --- a/src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php @@ -19,6 +19,8 @@ use Symfony\Component\VarDumper\Exception\ThrowingCasterException; * Casts common Exception classes to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class ExceptionCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/GmpCaster.php b/src/Symfony/Component/VarDumper/Caster/GmpCaster.php index 504dc07886..2b20e15dc8 100644 --- a/src/Symfony/Component/VarDumper/Caster/GmpCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/GmpCaster.php @@ -18,6 +18,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * * @author Hamza Amrouche * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class GmpCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/ImagineCaster.php b/src/Symfony/Component/VarDumper/Caster/ImagineCaster.php index 2275386ad4..d1289da337 100644 --- a/src/Symfony/Component/VarDumper/Caster/ImagineCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/ImagineCaster.php @@ -17,7 +17,7 @@ use Symfony\Component\VarDumper\Cloner\Stub; /** * @author Grégoire Pineau */ -class ImagineCaster +final class ImagineCaster { public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array { diff --git a/src/Symfony/Component/VarDumper/Caster/IntlCaster.php b/src/Symfony/Component/VarDumper/Caster/IntlCaster.php index 31d5cb395f..d7099cb18a 100644 --- a/src/Symfony/Component/VarDumper/Caster/IntlCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/IntlCaster.php @@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; /** * @author Nicolas Grekas * @author Jan Schädlich + * + * @final since Symfony 4.4 */ class IntlCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/MemcachedCaster.php b/src/Symfony/Component/VarDumper/Caster/MemcachedCaster.php index a32654683d..b0177fa488 100644 --- a/src/Symfony/Component/VarDumper/Caster/MemcachedCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/MemcachedCaster.php @@ -15,6 +15,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; /** * @author Jan Schädlich + * + * @final since Symfony 4.4 */ class MemcachedCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/PdoCaster.php b/src/Symfony/Component/VarDumper/Caster/PdoCaster.php index 8af51829a9..d30ab01469 100644 --- a/src/Symfony/Component/VarDumper/Caster/PdoCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/PdoCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts PDO related classes to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class PdoCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/PgSqlCaster.php b/src/Symfony/Component/VarDumper/Caster/PgSqlCaster.php index cd6bf5b5fe..c54fb42864 100644 --- a/src/Symfony/Component/VarDumper/Caster/PgSqlCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/PgSqlCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts pqsql resources to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class PgSqlCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/ProxyManagerCaster.php b/src/Symfony/Component/VarDumper/Caster/ProxyManagerCaster.php index d8afd70400..ec02f8137d 100644 --- a/src/Symfony/Component/VarDumper/Caster/ProxyManagerCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/ProxyManagerCaster.php @@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; /** * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class ProxyManagerCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/RedisCaster.php b/src/Symfony/Component/VarDumper/Caster/RedisCaster.php index 558a0804d5..e92c65baeb 100644 --- a/src/Symfony/Component/VarDumper/Caster/RedisCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/RedisCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts Redis class from ext-redis to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class RedisCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php b/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php index 8dfe7ea5ad..a3bbadd538 100644 --- a/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts Reflector related classes to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class ReflectionCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/ResourceCaster.php b/src/Symfony/Component/VarDumper/Caster/ResourceCaster.php index 5d9b80de2a..78b5aab755 100644 --- a/src/Symfony/Component/VarDumper/Caster/ResourceCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/ResourceCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts common resource types to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class ResourceCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/SplCaster.php b/src/Symfony/Component/VarDumper/Caster/SplCaster.php index c6d360e9e0..4901b3c110 100644 --- a/src/Symfony/Component/VarDumper/Caster/SplCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/SplCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts SPL related classes to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class SplCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/SymfonyCaster.php b/src/Symfony/Component/VarDumper/Caster/SymfonyCaster.php index 34c261e03f..27a45bff26 100644 --- a/src/Symfony/Component/VarDumper/Caster/SymfonyCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/SymfonyCaster.php @@ -14,6 +14,9 @@ namespace Symfony\Component\VarDumper\Caster; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\VarDumper\Cloner\Stub; +/** + * @final since Symfony 4.4 + */ class SymfonyCaster { private static $requestGetters = [ diff --git a/src/Symfony/Component/VarDumper/Caster/UuidCaster.php b/src/Symfony/Component/VarDumper/Caster/UuidCaster.php index dd68c04223..b102774571 100644 --- a/src/Symfony/Component/VarDumper/Caster/UuidCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/UuidCaster.php @@ -17,7 +17,7 @@ use Symfony\Component\VarDumper\Cloner\Stub; /** * @author Grégoire Pineau */ -class UuidCaster +final class UuidCaster { public static function castRamseyUuid(UuidInterface $c, array $a, Stub $stub, bool $isNested): array { diff --git a/src/Symfony/Component/VarDumper/Caster/XmlReaderCaster.php b/src/Symfony/Component/VarDumper/Caster/XmlReaderCaster.php index 3ae9ec0ba1..d18e47460c 100644 --- a/src/Symfony/Component/VarDumper/Caster/XmlReaderCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/XmlReaderCaster.php @@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts XmlReader class to array representation. * * @author Baptiste Clavié + * + * @final since Symfony 4.4 */ class XmlReaderCaster { diff --git a/src/Symfony/Component/VarDumper/Caster/XmlResourceCaster.php b/src/Symfony/Component/VarDumper/Caster/XmlResourceCaster.php index 117138c784..ce0317c0b5 100644 --- a/src/Symfony/Component/VarDumper/Caster/XmlResourceCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/XmlResourceCaster.php @@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub; * Casts XML resources to array representation. * * @author Nicolas Grekas + * + * @final since Symfony 4.4 */ class XmlResourceCaster {