X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fvalidator%2FConstraintValidator.php;fp=vendor%2Fsymfony%2Fvalidator%2FConstraintValidator.php;h=35f41889eaee7a4e47ccfc29d7fa8c82bc6a4ec5;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9a6b54a402d65935ecfc55ee9a452aadf4b4843b;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/symfony/validator/ConstraintValidator.php b/vendor/symfony/validator/ConstraintValidator.php index 9a6b54a40..35f41889e 100644 --- a/vendor/symfony/validator/ConstraintValidator.php +++ b/vendor/symfony/validator/ConstraintValidator.php @@ -58,7 +58,7 @@ abstract class ConstraintValidator implements ConstraintValidatorInterface */ protected function formatTypeOf($value) { - return is_object($value) ? get_class($value) : gettype($value); + return \is_object($value) ? \get_class($value) : \gettype($value); } /** @@ -107,7 +107,7 @@ abstract class ConstraintValidator implements ConstraintValidatorInterface return $value->format('Y-m-d H:i:s'); } - if (is_object($value)) { + if (\is_object($value)) { if (($format & self::OBJECT_TO_STRING) && method_exists($value, '__toString')) { return $value->__toString(); } @@ -115,15 +115,15 @@ abstract class ConstraintValidator implements ConstraintValidatorInterface return 'object'; } - if (is_array($value)) { + if (\is_array($value)) { return 'array'; } - if (is_string($value)) { + if (\is_string($value)) { return '"'.$value.'"'; } - if (is_resource($value)) { + if (\is_resource($value)) { return 'resource'; }