Skip to content

PHP 7: check for functions with no return type #27

Description

@alanwillms

Warn user about functions and methods that do not define a return type:

// Regex: "function.*\)\s*\{"
function foo() { ... } // wrong
function foo() : int { ... } // right

Since PHP 7.0 does not have a void return type, those warning should not return an error exit status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions