Skip to content

simplexml won't work #46

@standa

Description

@standa

Unless I get the idea wrong, simplexml return types will not work.

namespace Safe;
// must return \SimpleXMLElement instead of Safe\SimpleXMLElement (class does not exist)
function simplexml_load_string(...): \SimpleXMLElement { ... }
function simplexml_load_file(...): \SimpleXMLElement { ... }
function simplexml_import_dom(...): \SimpleXMLElement { ... }

I believe this is a general problem of https://github.com/thecodingmachine/safe/blob/master/generator/src/WritePhpFunction.php#L51

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions