File tree 1 file changed +2
-2
lines changed
src/voku/SimplePhpParser/Parsers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ public static function process(
254
254
*/
255
255
public static function file_get_contents_with_cache (string $ fileName , Cache $ cache ): array
256
256
{
257
- $ cacheKey = 'simple-php-code-parser- ' . \md5 ($ fileName ) . '-- ' . \filemtime ($ fileName );
257
+ $ cacheKey = 'simple-php-code-parser- ' . \md5 ($ fileName ) . '-- ' . \filemtime ($ fileName ) . ' -- ' . \ PHP_VERSION ;
258
258
259
259
if ($ cache ->getCacheIsReady () === true && $ cache ->existsItem ($ cacheKey )) {
260
260
return $ cache ->getItem ($ cacheKey );
@@ -299,7 +299,7 @@ private static function getCode(
299
299
new RecursiveDirectoryIterator ($ pathOrCode , FilesystemIterator::SKIP_DOTS )
300
300
);
301
301
} else {
302
- $ cacheKey = 'simple-php-code-parser- ' . \md5 ($ pathOrCode );
302
+ $ cacheKey = 'simple-php-code-parser- ' . \md5 ($ pathOrCode ) . ' -- ' . \ PHP_VERSION ;
303
303
304
304
$ phpCodes [$ cacheKey ]['content ' ] = $ pathOrCode ;
305
305
$ phpCodes [$ cacheKey ]['fileName ' ] = null ;
You can’t perform that action at this time.
0 commit comments