-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check included files for defined classes before include
including a file that re-redefines leads to a fatal error, making phpcs fail hard. including files from a rule-set while these files may have already been included (likely by auto-loading and could then be seen as a race- condition) now checks if it has been already included and if so, searches all loaded classes for the class-name and if found, verifies the class is from that file. this effectively prevents the fatal error and works for classes / files with a PSR-4 naming scheme.
- Loading branch information
Showing
1 changed file
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters