Merge pull request #15087 from martinstuecklschwaiger/2.x

Make TestShell compatible with PHP 7.4
This commit is contained in:
Mark Story 2020-10-21 17:23:14 -04:00 committed by GitHub
commit 89e23927cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';