Skip to content

Code upgrade: PHPStan

phpstan2

  • manually edit composer.jspn
  • phpstan2 phpmd workaround: add quotes; eg: @SuppressWarnings("PHPMD.RULE")

phpstan-deprecation-rules

{
  "require-dev": {
    "phpstan/phpstan-deprecation-rules": "^2"
  }
}
rm -rf vendor && rm -f composer.lock
ddev composer u
ddev composer check