fix(config): Avoid error messages for restricted opcache API

Make changes recently added via #44230 match #8188 to avoid failures in restricted hosting environments.

Fixes #47562

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2024-08-28 08:20:25 -04:00 committed by GitHub
parent b4d7498cfb
commit 3e434bcebf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ class Config {
// Invalidate opcache (only if the timestamp changed)
if (function_exists('opcache_invalidate')) {
opcache_invalidate($file, false);
@opcache_invalidate($file, false);
}
$filePointer = @fopen($file, 'r');