phpstan / phpstan-strict-rules

Extra strict and opinionated rules for PHPStan
MIT License
604 stars 48 forks source link

Add default value to operator rules #212

Closed lucdima closed 1 year ago

lucdima commented 1 year ago

This should fix this error that appear after updating the latest phpstan:

Service 'rules.164' (type of PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule): Parameter $bleedingEdge in OperandsInArithmeticAdditionRule::__construct() has no class type or default value, so its value must be specified.
ondrejmirtes commented 1 year ago

See the discussion here: https://github.com/phpstan/phpstan-strict-rules/issues/205#issuecomment-1439686239

lucdima commented 1 year ago

Thanks! I was not able to find it before!