Skip to content

Looking for a way to read global functions #57

@BlacKCaT27

Description

@BlacKCaT27

Hello,

My team has been using this library while writing a refactoring tool and we came across an issue.

We have several legacy code files which contain global functions and/or global scope code (I know...I know....we're working on fixing it). The tool we're writing needs to ingest these files and break them up into model objects that represent a given code file.

We've tried using this libraries PhpClass::FromFile method, but this doesn't appear to capture global functions/code.

Is there any way to do so using the tools in this library? Something like a PhpFile::FromFile method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions