Error Identifiers: callable.*

Menu

← Back to all error identifiers

There are 8 error identifiers in the callable.* group:

  • Callable references a method that is not accessible from the current scope.

  • Unnecessary (void) cast on a callable that already allows discarding its return value.

  • Non-callable expression is invoked as a function.

  • First-class callable syntax is not supported on the configured PHP version.

  • Return value of a callable that requires its result to be used is discarded.

  • Generic callable type shadows a template type from the enclosing class or function.

  • Return type of a callable call contains an unresolvable type after template substitution.

  • Return value of a void-returning callable is used.