From 61774eea829f9294cfaaac7bf5bfc4cc206a752c Mon Sep 17 00:00:00 2001 From: Yusup Hambali Date: Fri, 17 May 2024 18:58:57 +0700 Subject: [PATCH] Make `Migration->printException()` overridable --- framework/db/Migration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/Migration.php b/framework/db/Migration.php index 8bbce464038..508e7e9a3e2 100644 --- a/framework/db/Migration.php +++ b/framework/db/Migration.php @@ -162,7 +162,7 @@ public function down() /** * @param \Throwable $e */ - private function printException($e) + protected function printException($e) { echo 'Exception: ' . $e->getMessage() . ' (' . $e->getFile() . ':' . $e->getLine() . ")\n"; echo $e->getTraceAsString() . "\n";