TikiWiki/tiki-manager

View on GitHub

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

                $out .= 'color:'.self::$availableForegroundColors[$code].';';

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

        $allFiles = $this->exec($folder, $command, true);
Severity: Info
Found in src/Libs/VersionControl/Svn.php by phan

Call to deprecated function \info() defined at /code/src/Libs/Helpers/functions.php:128
Open

            info("Upgrading to '{$branch}'");
Severity: Minor
Found in src/Repository/SVN.php by phan

Call to deprecated function \error() defined at /code/src/Libs/Helpers/functions.php:146
Open

            error("Unsupported query parameter type: array\n");
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Returning type null but getStdin() is declared to return resource
Open

        return $this->stdin ?: null;
Severity: Minor
Found in src/Libs/Host/Command.php by phan

Call to deprecated function \promptUser() defined at /code/src/Libs/Helpers/functions.php:363
Open

            if ('yes' == strtolower(promptUser(
Severity: Minor
Found in src/Repository/SVN.php by phan

Call to deprecated function \info() defined at /code/src/Libs/Helpers/functions.php:128
Open

            info("Updating '{$branch}'");
Severity: Minor
Found in src/Repository/SVN.php by phan

Invalid operator: left operand of >> is mixed (expected int)
Open

                $modes[($cur_mode >> 6) & 0b111],
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Function query defined at /code/src/Libs/Helpers/functions.php:247 was previously defined at /code/scripts/tiki/mysqldump.php:50
Open

function query($query, $params = null)
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Returning type null but getStderr() is declared to return resource
Open

        return $this->stderr ?: null;
Severity: Minor
Found in src/Libs/Host/Command.php by phan

Returning type void but setSafeDirectory() is declared to return null
Open

            return; // return early if we should not process safedir
Severity: Minor
Found in src/Libs/VersionControl/Git.php by phan

Call to deprecated function \color() defined at /code/src/Libs/Helpers/functions.php:28
Open

        echo color($output, 'pink');
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Invalid operator: left operand of >> is mixed (expected int)
Open

    $exp_mode = (($cur_mode >> 6) << 6) | 0b111000000;
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Invalid operator: left operand of >> is mixed (expected int)
Open

                $modes[($cur_mode >> 3) & 0b111],
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Call to deprecated function \warning() defined at /code/src/Libs/Helpers/functions.php:137
Open

                    warning(sprintf('%s [%d]', $cmd, $exitCode));
Severity: Minor
Found in src/Libs/Host/Local.php by phan

Suspicious array access to float|int
Open

                $output->writeln(sprintf('<%1$s>[%2$s] %3$s</%1$s>', $this->formatLevelMap[$level], strtoupper($level), $this->interpolate($message, $context)), $this->verbosityLevelMap[$level]);
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

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

        $this->setenv('HTTP_ACCEPT_ENCODING', '');
Severity: Info
Found in src/Libs/Host/SSHSeclibAdapter.php by phan

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

        $allFiles = $this->exec($folder, 'status', true);
Severity: Info
Found in src/Libs/VersionControl/Svn.php by phan

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

                $out .= 'background-color:'.self::$availableBackgroundColors[$code].';';

Default value for string $default can't be false
Open

function promptUser($prompt, $default = false, $values = [])
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan
Severity
Category
Status
Source
Language