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
Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Inline.php
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,13 @@ public static function dump($value, $flags = 0)
203
203
return"''";
204
204
case Yaml::DUMP_BASE64_BINARY_DATA & $flags && self::isBinaryString($value):
205
205
return'!!binary '.base64_encode($value);
206
+
}
207
+
208
+
if (self::isBinaryString($value)) {
209
+
@trigger_error('Dumping non UTF-8 data without passing the DUMP_BASE64_BINARY_DATA flag is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
210
+
}
211
+
212
+
switch (true) {
206
213
case Escaper::requiresDoubleQuoting($value):
207
214
return Escaper::escapeWithDoubleQuotes($value);
208
215
case Escaper::requiresSingleQuoting($value):
@@ -627,7 +634,7 @@ public static function evaluateBinaryScalar($scalar)
$this->assertSame('Dumping non UTF-8 data without passing the DUMP_BASE64_BINARY_DATA flag is deprecated since Symfony 3.1 and will be removed in 4.0.', $deprecations[0]);
$this->assertSame('Dumping non UTF-8 data without passing the DUMP_BASE64_BINARY_DATA flag is deprecated since Symfony 3.1 and will be removed in 4.0.', $deprecations[0]);
0 commit comments