The expression \Symfony\Component\Yaml\Yaml::parse($value); of type array|string adds the type string to the return on line 34 which is incompatible with the return type declared by the interface NilPortugues\Serializer\...yInterface::unserialize of type array.