You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments