Open jegelstaff opened 1 month ago
Might be overkill but one thought could be to push the code through a linter. I’ve been playing with command line php linters to help us with the code base so it could live in the project. We might be able to stream the string to the linter and receive the output. Totally hypothetical.
Check the comment in formulize_validatePHPCode function. Need a reliable way to check for syntax errors in code the user writes, so we don't break the entire application by saving invalid code!!!