Skip to content

Param overwriting

Choose a tag to compare

@spaze spaze released this 08 Feb 23:56
  • Allow param overwriting (#46)
    You can now include the bundled config file and then allow some calls/constants by path in your local config

  • Document this extension can be used with PHPStan but without running any other PHPStan rules (#45)

  • Don't crash on $string::constant (#43)
    Unfortunately, some valid use cases are not supported yet and an error will be thrown for cases like

/** @var string $monster */
$monster = DateTime::class;
$monster::COOKIE;
/** @var class-string $monster */
$monster = DateTime::class;
$monster::COOKIE;

If you hit those errors, you need to add them to ignoreErrors in your phpstan.neon config file. I hope to resolve the issue in a future release, contributions welcome.