Remove scalar typehints to support PHP5

This commit is contained in:
Alexander Nell committed 2020-02-25 17:48:27 +01:00
1 parent 29fff4e012
commit e8d2b2e81e
5 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -127,7 +127,7 @@ class CommandManager implements CallbackListener, UsageInformationAble {
* @param bool $adminCommand
* @param CommandListener $listener
*/
public function disableCommand($commandName, bool $adminCommand, CommandListener $listener) {
public function disableCommand($commandName, $adminCommand, CommandListener $listener) {
if (is_array($commandName)) {
foreach ($commandName as $command) {
$this->disableCommand($command, $adminCommand, $listener);
@@ -163,7 +163,7 @@ class CommandManager implements CallbackListener, UsageInformationAble {
* @param bool $adminCommand
* @param CommandListener $listener
*/
public function enableCommand($commandName, bool $adminCommand, CommandListener $listener) {
public function enableCommand($commandName, $adminCommand, CommandListener $listener) {
if (is_array($commandName)) {
foreach ($commandName as $command) {
$this->enableCommand($command, $adminCommand, $listener);
@@ -198,7 +198,7 @@ class CommandManager implements CallbackListener, UsageInformationAble {
* @param bool $adminCommand
* @return bool|array
*/
public function isCommandEnabled($commandName, bool $adminCommand) {
public function isCommandEnabled($commandName, $adminCommand) {
if (is_array($commandName)) {
$results = array();
foreach ($commandName as $command) {