PHPCSStandards / PHPCSUtils

A suite of utility functions for use with PHP_CodeSniffer
https://phpcsutils.com/
GNU Lesser General Public License v3.0
53 stars 7 forks source link

ControlStructures::getCaughtExceptions(): don't throw an exception for a parse error #594

Closed jrfnl closed 4 months ago

jrfnl commented 4 months ago

Sniffs should silently ignore parse errors in the file under scan.

This commit removes a parse error related exception.

Includes updated unit test.

Also see squizlabs/PHP_CodeSniffer#2455