Skip to content

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

@apermo

Description

@apermo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions