Issue #3507536 by tim.plunkett, fjgarlin: Switch to conditional usage of PHPStan for upstream incompatibilities