I've read the documentation from PhpStan and Psalm, and i couldn't find the rules where it checks the Cyclomatic Complexity like Phpmd does here
Also, is it possible to cusomise rules within levels for PhpStan and Psalm? Looking for a source.
Psalm has a ComplexMethod check. Internally, it uses two metrics for this: "method graph size" and "average path length". Not sure if that corresponds to the cyclomatic complexity though