Skip to content

Commit 67fef9e

Browse files
author
Josh Oakes
committed
Prevent version_compare on null
1 parent 818e579 commit 67fef9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema/Tables/Contracts/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public function is_schema_current() {
438438
// @todo Error?
439439
}
440440

441-
$version_applied = $this->get_stored_version();
441+
$version_applied = $this->get_stored_version() ?: '';
442442
$current_version = $this->get_version();
443443

444444
return version_compare( $version_applied, $current_version, '==' );

0 commit comments

Comments
 (0)