Fix #20485: Fix error Cannot unset string offsets in yii\di\Instance:ensure(['__class' => ...], 'some\class\name'), Integrate PHPStan for static analysis

This commit is contained in:
Maksim Spirkov
2025-08-27 00:01:33 +05:00
committed by GitHub
parent 22889d314a
commit 28b6ca7002
23 changed files with 327 additions and 118 deletions

View File

@ -101,9 +101,7 @@ class XCache extends Cache
protected function flushValues()
{
for ($i = 0, $max = xcache_count(XC_TYPE_VAR); $i < $max; $i++) {
if (xcache_clear_cache(XC_TYPE_VAR, $i) === false) {
return false;
}
xcache_clear_cache(XC_TYPE_VAR, $i);
}
return true;