We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2373b commit 7add517Copy full SHA for 7add517
src/DBAL/Schema/Comparator.php
@@ -5,13 +5,19 @@
5
namespace Pfilsx\PostgreSQLDoctrine\DBAL\Schema;
6
7
use Doctrine\DBAL\Schema\Comparator as BaseComparator;
8
+use Doctrine\DBAL\Schema\Schema as BaseSchema;
9
+use Doctrine\DBAL\Schema\SchemaDiff as BaseSchemaDiff;
10
11
final class Comparator extends BaseComparator
12
{
- public function compareSchemas(Schema $fromSchema, Schema $toSchema): SchemaDiff
13
+ public function compareSchemas(BaseSchema $fromSchema, BaseSchema $toSchema): BaseSchemaDiff
14
15
$baseDiff = parent::compareSchemas($fromSchema, $toSchema);
16
17
+ if (!$fromSchema instanceof Schema || !$toSchema instanceof Schema) {
18
+ return $baseDiff;
19
+ }
20
+
21
$createdTypes = [];
22
$alteredTypes = [];
23
$droppedTypes = [];
0 commit comments