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 f47cdbf commit 9ac4fb2Copy full SHA for 9ac4fb2
src/Schema/AbstractColumn.php
@@ -598,10 +598,12 @@ public function compare(self $initial): bool
598
? $initial->getDefaultValue()->__toString()
599
: $initial->getDefaultValue();
600
601
- if ($this->userType === 'boolean') {
602
- $defaultValue = (bool) $defaultValue;
603
- $initialDefaultValue = (bool) $initialDefaultValue;
604
- }
+ $defaultValue = $this->userType === 'boolean'
+ ? (bool) $defaultValue
+ : $defaultValue;
+ $initialDefaultValue = $this->userType === 'boolean'
605
+ ? (bool) $initialDefaultValue
606
+ : $initialDefaultValue;
607
608
//Default values has to compared using type-casted value
609
if ($defaultValue != $initialDefaultValue) {
0 commit comments