appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.33k stars 118 forks source link

feat: honor PHP_VERSION_ID #124

Closed wojo1206 closed 3 years ago

wojo1206 commented 3 years ago

Some packages use following logic:

if (\PHP_VERSION_ID >= 80000) {
    return require __DIR__.'/bootstrap80.php';
}

When such line is run on PHP < 8.0 we may got fatal syntax errors.

Alternative solution: allow to exclude specific files in config.

wojo1206 commented 3 years ago

Allowing to exclude some filenames resolves the issue. Created pull request.