Menu

Error Identifier: nullCoalesce.offset

Error identifiers like nullCoalesce.offset in PHPStan can be used to ignore errors locally using a comment:

// @phpstan-ignore nullCoalesce.offset
codeThatProducesTheError();

You can also use only the identifier key to ignore all errors of the same type in your configuration file in the ignoreErrors parameter:

parameters:
	ignoreErrors:
		-
			identifier: nullCoalesce.offset

You can see what identifiers are attached to reported errors by running PHPStan with -v and using the table error formatter. Here’s a list of all error identifiers.

You can also see error identifiers while browsing errors in PHPStan Pro.

This identifier is reported by these rules:

  • PHPStan\Rules\Variables\EmptyRule [1] [2] [3]
  • PHPStan\Rules\Variables\IssetRule [1] [2] [3]
  • PHPStan\Rules\Variables\NullCoalesceRule [1] [2] [3]
Theme
A
© 2025 PHPStan s.r.o.