mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-28 04:25:53 +08:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user