TikiWiki/tiki-manager

View on GitHub

Showing 2,085 of 2,085 total issues

Suspicious array access to nullable ?array
Open

                chmod($_ENV['DB_FILE'], 0666);
Severity: Minor
Found in src/Config/Environment.php by phan

Suspicious array access to nullable ?array
Open

            $file = $_ENV['DB_FILE'];
Severity: Minor
Found in src/Config/Environment.php by phan

Suspicious array access to nullable ?array
Open

            $db = new PDOWrapper('sqlite:' . $_ENV['DB_FILE']);
Severity: Minor
Found in src/Config/Environment.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string Type of password (pronounceable, unpronounceable)': after string, did not see an element name (will guess based on comment order)
Open

     * @param  string  Type of password (pronounceable, unpronounceable)
Severity: Info
Found in src/Ext/Password.php by phan

Call to deprecated function \color() defined at /code/src/Libs/Helpers/functions.php:27
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

                $modes[($cur_mode >> 3) & 0b111],
Severity: Minor
Found in src/Libs/Helpers/functions.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

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 to deprecated function \promptUser() defined at /code/src/Libs/Helpers/functions.php:362
Open

            if ('yes' == strtolower(promptUser(
Severity: Minor
Found in src/Repository/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].';';

Argument 2 (subject) is int but \preg_match() takes string
Open

        if (preg_match('/(\d+)(\d{2})(\d{2})$/', $phpVersion, $matches)) {
Severity: Minor
Found in src/Command/Helper/CommandHelper.php by phan

Suspicious array access to nullable ?array|null
Open

            file_exists($_ENV['TRIM_DATA'] . "/id_dsa.pub") &&
Severity: Minor
Found in src/Config/Environment.php by phan

Possibly zero references to use statement for classlike/namespace Instance (\TikiManager\Application\Instance)
Open

use TikiManager\Application\Instance;
Severity: Minor
Found in src/Hooks/InstanceProfileApplyHook.php by phan

Argument #2 of this call to \stripos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

            } while ((strlen($input) == 0) || (stripos('pvdas', $input[0]) === false));
Severity: Minor
Found in src/Libs/Helpers/Checksum.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

Assigning string to property but \TikiManager\Application\Instance->vcs_type is null
Open

            $instance->vcs_type = $vcsType;
Severity: Minor
Found in src/Command/Helper/CommandHelper.php by phan

Possibly zero references to use statement for classlike/namespace YamlFetcher (\TikiManager\Application\Tiki\Versions\Fetcher\YamlFetcher)
Open

use TikiManager\Application\Tiki\Versions\Fetcher\YamlFetcher;
Severity: Minor
Found in src/Command/Traits/InstanceUpgrade.php by phan

Suspicious array access to nullable ?array
Open

        if ($_ENV['IS_PHAR']) {
Severity: Minor
Found in src/Config/Environment.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param integer Length of the password': after integer, did not see an element name (will guess based on comment order)
Open

     * @param  integer Length of the password
Severity: Info
Found in src/Ext/Password.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
Open

     * @param  integer Key
Severity: Info
Found in src/Ext/Password.php by phan
Severity
Category
Status
Source
Language