Skip to content

Add --use-include flag in order to overcome eval() limitations #49

@mklepaczewski

Description

@mklepaczewski

Feature Request

Describe your use case and the problem you are facing

eval-file uses eval() to execute code in provided script. Unfortunately, this has some limitations:

  • declare(strict_types=1) in the script file throws a fatal error in eval()
  • evale'd code cannot be debugged using XDebug.

Describe the solution you'd like

I propose to add --use-require flag to eval-file to indicate that the script should be executed using require().

If the proposal is accepted I'm willing to implement it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions