The --level option was removed in 2.x, you should use --rules=@PSR2 instead. See Upgrade guide.
--level
--rules=@PSR2
Most helpful comment
The
--leveloption was removed in 2.x, you should use--rules=@PSR2instead. See Upgrade guide.