Menu

← Back to phpstanPlayground.*

Error Identifier: phpstanPlayground.configParameter

Every error reported by PHPStan has an error identifier. Here’s a list of all error identifiers. In PHPStan Pro you can see the error identifier next to each error and filter errors by their identifiers.

Code example #

This identifier is used internally by the PHPStan playground to inform users about errors that would be reported if a specific configuration parameter was enabled.

<?php declare(strict_types = 1);

// Example: if checkUninitializedProperties were enabled,
// the playground would show a phpstanPlayground.configParameter error
// suggesting the user enable that parameter.

Why is it reported? #

When analysing code on the PHPStan playground, certain rules that are gated behind configuration parameters (like checkUninitializedProperties) are not active by default. The playground wraps these rules and reports their findings under the phpstanPlayground.configParameter identifier, with a tip explaining which configuration parameter the user should enable to get the error in their own project.

How to fix it #

The tip attached to this error indicates which configuration parameter to enable. Add the suggested parameter to the project’s PHPStan configuration file to get this error reported as a regular error with its own specific identifier:

parameters:
    checkUninitializedProperties: true

This identifier is specific to the PHPStan playground and will not appear in local analysis.

Non-ignorable error #

This error cannot be ignored using @phpstan-ignore or the ignoreErrors configuration. Non-ignorable errors indicate code that would cause a crash or a fatal error at runtime, or a fundamental problem in the analysed code that must be addressed.

Rules that report this error #

  • PHPStan\Rules\Playground\PromoteParameterRule [1]

Edit this page on GitHub

Theme
A
© 2026 PHPStan s.r.o.