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.
Feature Request
Describe your use case and the problem you are facing
eval-fileuseseval()to execute code in provided script. Unfortunately, this has some limitations:declare(strict_types=1)in the script file throws a fatal error ineval()Describe the solution you'd like
I propose to add
--use-requireflag toeval-fileto indicate that the script should be executed usingrequire().If the proposal is accepted I'm willing to implement it.