mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
fix: Correctly ignore lazy ghost initialization in debug warning about direct constructor call
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b3ffe4bf66
commit
4a1eb3dc2a
1 changed files with 4 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||
*/
|
||||
namespace OCP\AppFramework;
|
||||
|
||||
use OC\AppFramework\Utility\SimpleContainer;
|
||||
use OC\ServerContainer;
|
||||
use OCP\IConfig;
|
||||
use OCP\Server;
|
||||
|
|
@ -70,9 +71,10 @@ class App {
|
|||
$setUpViaQuery = true;
|
||||
break;
|
||||
} elseif (isset($step['class'], $step['function'], $step['args'][0]) &&
|
||||
$step['class'] === \ReflectionClass::class &&
|
||||
$step['function'] === 'initializeLazyObject' &&
|
||||
$step['class'] === SimpleContainer::class &&
|
||||
preg_match('/{closure:OC\\\\AppFramework\\\\Utility\\\\SimpleContainer::buildClass\\(\\):\\d+}/', $step['function']) &&
|
||||
$step['args'][0] === $this) {
|
||||
/* We are setup through a lazy ghost, fine */
|
||||
$setUpViaQuery = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue