1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

fix(serializers): fix yaml native support

This commit is contained in:
Awilum
2021-08-02 12:15:06 +03:00
parent fffb58095a
commit 92395ca279

View File

@@ -86,7 +86,7 @@ class Yaml
{
$decode = function (string $input, int $flags = 0) {
// Try native PECL YAML PHP extension first if available.
if (function_exists('yaml_parse') && $this->native) {
if (function_exists('yaml_parse') && self::$native) {
// Safely decode YAML.
// Save and Mute error_reporting