wpcs-docs icon indicating copy to clipboard operation
wpcs-docs copied to clipboard

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

Open apermo opened this issue 5 months ago • 0 comments

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.

apermo avatar Sep 10 '24 13:09 apermo