TikiWiki/tiki-manager

View on GitHub

Showing 2,235 of 2,235 total issues

Suspicious array access to float|int
Open

            if (in_array($this->formatLevelMap[$level], [self::ERROR, self::WARNING])) {
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

Default value for string $values can't be array{}
Open

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

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

        error("Invalid response.\n");
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Argument 1 (arg) is int but \escapeshellarg() takes string
Open

            $port = escapeshellarg($this->port);
Severity: Minor
Found in src/Libs/Host/SSH.php by phan

Invalid operator: left operand is array and right is not
Open

        $this->verbosityLevelMap = $verbosityLevelMap + $this->verbosityLevelMap;
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

Argument 2 (port) is string but \ftp_connect() takes int
Open

        $conn = ftp_connect($this->host, $this->port, 15);
Severity: Minor
Found in src/Libs/Host/FTP.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

Suspicious array access to float|int
Open

        if (self::ERROR === $this->formatLevelMap[$level]) {
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

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

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

Saw possibly unextractable annotation for a fragment of comment '* @param resource|string the command stdin': after resource|string, did not see an element name (will guess based on comment order)
Open

     * @param resource|string    the command stdin
Severity: Info
Found in src/Libs/Host/Command.php by phan

Suspicious array access to float|int
Open

        if ($output->getVerbosity() >= $this->verbosityLevelMap[$level]) {
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

    git branch --set-upstream-to=<remote>/<branch> {$branch}

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

            error("Trying to upgrade '{$this->repository}' to different repository: {$root}");
Severity: Minor
Found in src/Repository/SVN.php by phan

Argument 2 (replace) is int but \str_replace() takes array|string
Open

            $query = str_replace($key, (int)$value, $query);
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Assigning \TikiManager\Libs\Host\SSH to property but \TikiManager\Libs\Host\Command->host is \TikiManager\Libs\Host\Local
Open

        return $this->host = $host;
Severity: Minor
Found in src/Libs/Host/Command.php by phan
Severity
Category
Status
Source
Language