From 63d218ea2424fa276f0dc4ca0e08c926d1d17aaa Mon Sep 17 00:00:00 2001 From: Viktor Krasnov Date: Sat, 14 Dec 2024 02:13:01 +0300 Subject: [PATCH] Update DiffGenerator.php --- src/Generator/DiffGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/DiffGenerator.php b/src/Generator/DiffGenerator.php index 7969b94a5..6760e8789 100644 --- a/src/Generator/DiffGenerator.php +++ b/src/Generator/DiffGenerator.php @@ -70,7 +70,7 @@ static function ($assetName) use ($filterExpression) { ! method_exists($this->schemaManager, 'getSchemaSearchPaths') && $this->platform->supportsSchemas() ) { - $defaultNamespace = $toSchema->getNamespaceName(); + $defaultNamespace = $toSchema->getNamespaceName() ?? ''; if ($defaultNamespace !== '') { $toSchema->createNamespace($defaultNamespace); }