Skip to content
New issue

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

require/import vs require/include in PHP Coding Standards Documentation. #143

Open
apermo opened this issue Sep 10, 2024 · 0 comments · May be fixed by #144
Open

require/import vs require/include in PHP Coding Standards Documentation. #143

apermo opened this issue Sep 10, 2024 · 0 comments · May be fixed by #144

Comments

@apermo
Copy link

apermo commented Sep 10, 2024

Hello everyone. I stumpled upon this site.

https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#using-import-use-statements

"Note that, unless you have implemented autoloading, the use statement won’t automatically load whatever is being imported. You’ll either need to set up autoloading or load the file containing the class/function/constant using a require/import statement, for the imported constructs to be loaded when used."

Unless I am mistaken that should read require/include?

If require/import is correct, just close the issue. I will prepare a PR right away with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant