Showing 2,235 of 2,235 total issues
When fetching an array index from a value of type array{30:'black',31:'red',32:'green',33:'yellow',34:'blue',35:'magenta',36:'cyan',37:'white'},
found an array index of type string,
but expected the index to be of type int
Open
Open
$out .= 'color:'.self::$availableForegroundColors[$code].';';
- Exclude checks
Call with 3 arg(s) to \TikiManager\Libs\VersionControl\Svn::exec()
which only takes 2 arg(s) defined at /code/src/Libs/VersionControl/Svn.php:108
Open
Open
$allFiles = $this->exec($folder, $command, true);
- Exclude checks
Call to deprecated function \info()
defined at /code/src/Libs/Helpers/functions.php:128
Open
Open
info("Upgrading to '{$branch}'");
- Exclude checks
Call to deprecated function \error()
defined at /code/src/Libs/Helpers/functions.php:146
Open
Open
error("Unsupported query parameter type: array\n");
- Exclude checks
Returning type null
but getStdin()
is declared to return resource
Open
Open
return $this->stdin ?: null;
- Exclude checks
Call to deprecated function \promptUser()
defined at /code/src/Libs/Helpers/functions.php:363
Open
Open
if ('yes' == strtolower(promptUser(
- Exclude checks
Call to deprecated function \info()
defined at /code/src/Libs/Helpers/functions.php:128
Open
Open
info("Updating '{$branch}'");
- Exclude checks
Invalid operator: left operand of >>
is mixed
(expected int) Open
Open
$modes[($cur_mode >> 6) & 0b111],
- Exclude checks
Function query
defined at /code/src/Libs/Helpers/functions.php:247
was previously defined at /code/scripts/tiki/mysqldump.php:50
Open
Open
function query($query, $params = null)
- Exclude checks
Returning type null
but getStderr()
is declared to return resource
Open
Open
return $this->stderr ?: null;
- Exclude checks
Returning type void
but setSafeDirectory()
is declared to return null
Open
Open
return; // return early if we should not process safedir
- Exclude checks
Call to deprecated function \color()
defined at /code/src/Libs/Helpers/functions.php:28
Open
Open
echo color($output, 'pink');
- Exclude checks
Invalid operator: left operand of >>
is mixed
(expected int) Open
Open
$exp_mode = (($cur_mode >> 6) << 6) | 0b111000000;
- Exclude checks
Invalid operator: left operand of >>
is mixed
(expected int) Open
Open
$modes[($cur_mode >> 3) & 0b111],
- Exclude checks
Call to deprecated function \warning()
defined at /code/src/Libs/Helpers/functions.php:137
Open
Open
warning(sprintf('%s [%d]', $cmd, $exitCode));
- Exclude checks
Suspicious array access to float|int
Open
Open
$output->writeln(sprintf('<%1$s>[%2$s] %3$s</%1$s>', $this->formatLevelMap[$level], strtoupper($level), $this->interpolate($message, $context)), $this->verbosityLevelMap[$level]);
- Exclude checks
Call with 2 arg(s) to \TikiManager\Libs\Host\SSHSeclibAdapter::setEnv()
which only takes 1 arg(s) defined at /code/src/Libs/Host/SSHSeclibAdapter.php:164
Open
Open
$this->setenv('HTTP_ACCEPT_ENCODING', '');
- Exclude checks
Call with 3 arg(s) to \TikiManager\Libs\VersionControl\Svn::exec()
which only takes 2 arg(s) defined at /code/src/Libs/VersionControl/Svn.php:108
Open
Open
$allFiles = $this->exec($folder, 'status', true);
- Exclude checks
When fetching an array index from a value of type array{40:'black',41:'red',42:'green',43:'yellow',44:'blue',45:'magenta',46:'cyan',47:'white'},
found an array index of type string,
but expected the index to be of type int
Open
Open
$out .= 'background-color:'.self::$availableBackgroundColors[$code].';';
- Exclude checks
Default value for string
$default
can't be false
Open
Open
function promptUser($prompt, $default = false, $values = [])
- Exclude checks