From bb58933691f58bd787a6cce01e318bfe51ce9c3c Mon Sep 17 00:00:00 2001 From: Martin Stuecklschwaiger Date: Wed, 21 Oct 2020 17:48:23 +0000 Subject: [PATCH] Make TestShell compatible with PHP 7.4 --- lib/Cake/Console/Command/TestShell.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Console/Command/TestShell.php b/lib/Cake/Console/Command/TestShell.php index ebaab5bde..c9520cbd5 100644 --- a/lib/Cake/Console/Command/TestShell.php +++ b/lib/Cake/Console/Command/TestShell.php @@ -291,8 +291,8 @@ class TestShell extends Shell { public function available() { $params = $this->_parseArgs(); $testCases = CakeTestLoader::generateTestList($params); - $app = $params['app']; - $plugin = $params['plugin']; + $app = isset($params['app']) ? $params['app'] : null; + $plugin = isset($params['plugin']) ? $params['plugin'] : null; $title = "Core Test Cases:"; $category = 'core';