Skip to content

Commit

Permalink
Update DiffGenerator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorKrasnov authored Dec 13, 2024
1 parent 8d0aa85 commit 63d218e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/DiffGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static function ($assetName) use ($filterExpression) {
! method_exists($this->schemaManager, 'getSchemaSearchPaths')
&& $this->platform->supportsSchemas()
) {
$defaultNamespace = $toSchema->getNamespaceName();
$defaultNamespace = $toSchema->getNamespaceName() ?? '';

Check warning on line 73 in src/Generator/DiffGenerator.php

View check run for this annotation

Codecov / codecov/patch

src/Generator/DiffGenerator.php#L73

Added line #L73 was not covered by tests
if ($defaultNamespace !== '') {
$toSchema->createNamespace($defaultNamespace);
}
Expand Down

0 comments on commit 63d218e

Please sign in to comment.