From 029c4ffe479bc3702af6c3232dd619e6e631479e Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 27 Dec 2018 13:55:41 +0000 Subject: [PATCH] psalm fixes --- scripts/postfixadmin-cli.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/scripts/postfixadmin-cli.php b/scripts/postfixadmin-cli.php index badd7965..6854974e 100644 --- a/scripts/postfixadmin-cli.php +++ b/scripts/postfixadmin-cli.php @@ -81,28 +81,28 @@ class PostfixAdmin { * * @var string */ - public $shell = null; + public $shell; /** * The class name of the shell that was invoked. * * @var string */ - public $shellClass = null; + public $shellClass; /** * The command called if public methods are available. * * @var string */ - public $shellCommand = null; + public $shellCommand; /** * The name of the shell in camelized. * * @var string */ - public $shellName = null; + public $shellName; /** * Constructor @@ -121,10 +121,10 @@ class PostfixAdmin { */ private function __initConstants() { ini_set('display_errors', '1'); - ini_set('error_reporting', E_ALL); - ini_set('html_errors', false); - ini_set('implicit_flush', true); - ini_set('max_execution_time', 0); + ini_set('error_reporting', '' . E_ALL); + ini_set('html_errors', "0"); + ini_set('implicit_flush', "1"); + ini_set('max_execution_time', "0"); } /** @@ -321,8 +321,6 @@ class PostfixAdmin { /** * Helper for recursively paraing params - * - * @return array params */ private function __parseParams($params) { $count = count($params);