Skip to content

Commit 619657f

Browse files
kenjisMGatner
andcommitted
refactor: replace count()
Co-authored-by: MGatner <[email protected]>
1 parent 2382ca2 commit 619657f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/MigrationRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ public function getBatchEnd(int $batch): string
752752
->get()
753753
->getResultObject();
754754

755-
return count($migration) ? $migration[0]->version : '0';
755+
return $migration === [] ? '0' : $migration[0]->version;
756756
}
757757

758758
/**

0 commit comments

Comments
 (0)