[VarDumper] Made all casters final

This commit is contained in:
Grégoire Pineau 2019-10-07 11:34:24 +02:00
parent b43f25555f
commit 3044a91838
22 changed files with 42 additions and 2 deletions

View File

@ -9,6 +9,7 @@ CHANGELOG
* added `ImagineCaster` and infrastructure to dump images * added `ImagineCaster` and infrastructure to dump images
* added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data * added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data
* added `UuidCaster` * added `UuidCaster`
* made all casters final
4.3.0 4.3.0
----- -----

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts Amqp related classes to array representation. * Casts Amqp related classes to array representation.
* *
* @author Grégoire Pineau <lyrixx@lyrixx.info> * @author Grégoire Pineau <lyrixx@lyrixx.info>
*
* @final since Symfony 4.4
*/ */
class AmqpCaster class AmqpCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts DOM related classes to array representation. * Casts DOM related classes to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class DOMCaster class DOMCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts DateTimeInterface related classes to array representation. * Casts DateTimeInterface related classes to array representation.
* *
* @author Dany Maillard <danymaillard93b@gmail.com> * @author Dany Maillard <danymaillard93b@gmail.com>
*
* @final since Symfony 4.4
*/ */
class DateCaster class DateCaster
{ {

View File

@ -20,6 +20,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts Doctrine related classes to array representation. * Casts Doctrine related classes to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class DoctrineCaster class DoctrineCaster
{ {

View File

@ -20,6 +20,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts Ds extension classes to array representation. * Casts Ds extension classes to array representation.
* *
* @author Jáchym Toušek <enumag@gmail.com> * @author Jáchym Toušek <enumag@gmail.com>
*
* @final since Symfony 4.4
*/ */
class DsCaster class DsCaster
{ {

View File

@ -19,6 +19,8 @@ use Symfony\Component\VarDumper\Exception\ThrowingCasterException;
* Casts common Exception classes to array representation. * Casts common Exception classes to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class ExceptionCaster class ExceptionCaster
{ {

View File

@ -18,6 +18,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* *
* @author Hamza Amrouche <hamza.simperfit@gmail.com> * @author Hamza Amrouche <hamza.simperfit@gmail.com>
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class GmpCaster class GmpCaster
{ {

View File

@ -17,7 +17,7 @@ use Symfony\Component\VarDumper\Cloner\Stub;
/** /**
* @author Grégoire Pineau <lyrixx@lyrixx.info> * @author Grégoire Pineau <lyrixx@lyrixx.info>
*/ */
class ImagineCaster final class ImagineCaster
{ {
public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array
{ {

View File

@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de> * @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
*
* @final since Symfony 4.4
*/ */
class IntlCaster class IntlCaster
{ {

View File

@ -15,6 +15,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
/** /**
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de> * @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
*
* @final since Symfony 4.4
*/ */
class MemcachedCaster class MemcachedCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts PDO related classes to array representation. * Casts PDO related classes to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class PdoCaster class PdoCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts pqsql resources to array representation. * Casts pqsql resources to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class PgSqlCaster class PgSqlCaster
{ {

View File

@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class ProxyManagerCaster class ProxyManagerCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts Redis class from ext-redis to array representation. * Casts Redis class from ext-redis to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class RedisCaster class RedisCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts Reflector related classes to array representation. * Casts Reflector related classes to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class ReflectionCaster class ReflectionCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts common resource types to array representation. * Casts common resource types to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class ResourceCaster class ResourceCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts SPL related classes to array representation. * Casts SPL related classes to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class SplCaster class SplCaster
{ {

View File

@ -14,6 +14,9 @@ namespace Symfony\Component\VarDumper\Caster;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\VarDumper\Cloner\Stub; use Symfony\Component\VarDumper\Cloner\Stub;
/**
* @final since Symfony 4.4
*/
class SymfonyCaster class SymfonyCaster
{ {
private static $requestGetters = [ private static $requestGetters = [

View File

@ -17,7 +17,7 @@ use Symfony\Component\VarDumper\Cloner\Stub;
/** /**
* @author Grégoire Pineau <lyrixx@lyrixx.info> * @author Grégoire Pineau <lyrixx@lyrixx.info>
*/ */
class UuidCaster final class UuidCaster
{ {
public static function castRamseyUuid(UuidInterface $c, array $a, Stub $stub, bool $isNested): array public static function castRamseyUuid(UuidInterface $c, array $a, Stub $stub, bool $isNested): array
{ {

View File

@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts XmlReader class to array representation. * Casts XmlReader class to array representation.
* *
* @author Baptiste Clavié <clavie.b@gmail.com> * @author Baptiste Clavié <clavie.b@gmail.com>
*
* @final since Symfony 4.4
*/ */
class XmlReaderCaster class XmlReaderCaster
{ {

View File

@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
* Casts XML resources to array representation. * Casts XML resources to array representation.
* *
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/ */
class XmlResourceCaster class XmlResourceCaster
{ {