You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trigger_error('The !php/object: tag to indicate dumped PHP objects is deprecated since version 3.4 and will be removed in 4.0. Use the !php/object (without the colon) tag instead.', E_USER_DEPRECATED);
560
-
561
-
returnunserialize(substr($scalar, 12));
562
-
}
563
-
564
-
if (self::$exceptionOnInvalidType) {
565
-
thrownewParseException('Object support when parsing a YAML file has been disabled.');
566
-
}
567
-
568
-
return;
569
-
case0 === strpos($scalar, '!!php/object:'):
570
-
if (self::$objectSupport) {
571
-
@trigger_error('The !!php/object: tag to indicate dumped PHP objects is deprecated since version 3.1 and will be removed in 4.0. Use the !php/object (without the colon) tag instead.', E_USER_DEPRECATED);
572
-
573
-
returnunserialize(substr($scalar, 13));
574
-
}
575
-
576
-
if (self::$exceptionOnInvalidType) {
577
-
thrownewParseException('Object support when parsing a YAML file has been disabled.');
thrownewParseException('Object support when parsing a YAML file has been disabled.');
588
564
}
589
565
590
-
return;
591
-
case0 === strpos($scalar, '!php/const:'):
592
-
if (self::$constantSupport) {
593
-
@trigger_error('The !php/const: tag to indicate dumped PHP constants is deprecated since version 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead.', E_USER_DEPRECATED);
594
-
595
-
if (defined($const = substr($scalar, 11))) {
596
-
returnconstant($const);
597
-
}
598
-
599
-
thrownewParseException(sprintf('The constant "%s" is not defined.', $const));
600
-
}
601
-
if (self::$exceptionOnInvalidType) {
602
-
thrownewParseException(sprintf('The string "%s" could not be parsed as a constant. Have you forgotten to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar));
603
-
}
604
-
605
566
return;
606
567
case0 === strpos($scalar, '!php/const'):
607
568
if (self::$constantSupport) {
@@ -690,7 +651,7 @@ private static function parseTag($value, &$i, $flags)
* @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since version 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead.
* @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since version 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead.
1789
-
* @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since version 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead.
1790
-
* @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since version 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead.
0 commit comments