Skip to content

Commit

Permalink
Merge pull request doctrine#8700 from deguif/fix-undefined-offset
Browse files Browse the repository at this point in the history
Fix undefined index
  • Loading branch information
greg0ire authored May 18, 2021
2 parents 8e13369 + ebb5d03 commit 535bc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/ConvertDoctrine1Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private function convertColumn($className, $name, $column, ClassMetadataInfo $me
}

$fieldMapping = [
'nullable' => ! $column['notnull'] ?? true, // Doctrine 1 columns are nullable by default
'nullable' => ! ($column['notnull'] ?? true), // Doctrine 1 columns are nullable by default
];

if (isset($column['primary'])) {
Expand Down

0 comments on commit 535bc92

Please sign in to comment.