summaryrefslogtreecommitdiffstats
path: root/1603.patch
blob: edc022123c3970fac315c952cea89a7528819b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 5843afa20a3e9d39580d710dd927736c747ad47b Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 29 Aug 2019 13:39:59 +0200
Subject: [PATCH] Fix: Trying to access array offset on value of type bool

---
 src/Phinx/Migration/Manager.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Phinx/Migration/Manager.php b/src/Phinx/Migration/Manager.php
index 8b7040a05..9cea06674 100644
--- a/src/Phinx/Migration/Manager.php
+++ b/src/Phinx/Migration/Manager.php
@@ -206,8 +206,8 @@ public function printStatus($environment, $format = null)
                     '%s %14.0f  %19s  %19s  <comment>%s</comment>',
                     $status,
                     $migration->getVersion(),
-                    $version['start_time'],
-                    $version['end_time'],
+                    ($version ? $version['start_time'] : ''),
+                    ($version ? $version['end_time'] : ''),
                     $migration->getName()
                 ));