wpcs-docs
wpcs-docs copied to clipboard
require/import vs require/include in PHP Coding Standards Documentation.
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.