Skip to content

Commit

Permalink
TASK: Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Jun 23, 2023
1 parent a310c60 commit e9366e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rector/v12/v0/tca/MigrateNullFlagRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function refactorColumn(Expr $columnName, Expr $columnTca): void

/** @var String_ $evalStringNode */
$evalStringNode = $evalArrayItem->value;
$value = $evalStringNode->value;
$value = (string) $evalStringNode->value;

if (! StringUtility::inList($value, 'null')) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ return [
'nullable' => true,
],
],
'employment_type' => [
'config' => [
'eval' => ''
],
],
],
];

Expand All @@ -46,6 +51,11 @@ return [
'already_nullable_column' => [
'config' => ['nullable' => true],
],
'employment_type' => [
'config' => [
'eval' => ''
],
],
],
];

Expand Down

0 comments on commit e9366e1

Please sign in to comment.