File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,16 @@ public function lint($files = [], $cache = true)
96
96
for ($ i = count ($ running ); !empty ($ files ) && $ i < $ this ->processLimit ; ++$ i ) {
97
97
$ file = array_shift ($ files );
98
98
$ filename = $ file ->getRealPath ();
99
-
100
- if (!isset ($ this ->cache [$ filename ]) || $ this ->cache [$ filename ] !== md5_file ($ filename )) {
99
+ $ key = $ file -> getRelativePathname ();
100
+ if (!isset ($ this ->cache [$ key ]) || $ this ->cache [$ key ] !== md5_file ($ filename )) {
101
101
$ lint = new Lint (escapeshellcmd ($ phpbin ).' -d error_reporting=E_ALL -d display_errors=On -l ' .escapeshellarg ($ filename ));
102
- $ running [$ filename ] = [
102
+ $ running [$ key ] = [
103
103
'process ' => $ lint ,
104
104
'file ' => $ file ,
105
105
];
106
106
$ lint ->start ();
107
107
} else {
108
- $ newCache [$ filename ] = $ this ->cache [$ filename ];
108
+ $ newCache [$ key ] = $ this ->cache [$ key ];
109
109
}
110
110
}
111
111
You can’t perform that action at this time.
0 commit comments