This block should be:

```php
$columnInfo = $column->toArray(); 

if ( ! in_array('notnull', $columnDiff->changedProperties)) {
    $columnInfo['notnull'] = false; 
}

$fields[] = $column->getQuotedName($this). ' ' . $this->getColumnDeclarationSQL('', $columnInfo);
```