We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anyone up to implement my shell script in proper OOP PHP?
The text was updated successfully, but these errors were encountered:
@ondrejmirtes You handle PHP code much more than me. What do you suggest how to turn this regexp into nikic/PHP-Parser code?
\s*(require|include)(_once)?\(?\s*ABSPATH(\s*\.\s*WPINC)?\s*\.\s*'/?%'\s*\)?;.*
Sorry, something went wrong.
@szepeviktor I don't know what the regexp does, but include, include_once, require, require_once are represented in nikic/PHP-Parser with the Include_ node: https://github.com/nikic/PHP-Parser/blob/master/lib/PhpParser/Node/Expr/Include_.php
include
include_once
require
require_once
Include_
You can change what it contains and then output the modified AST with a Printer.
Thank you for the starter. I'd like to comment out these lines.
No branches or pull requests
Anyone up to implement my shell script in proper OOP PHP?
The text was updated successfully, but these errors were encountered: