TikiWiki/tiki-manager

View on GitHub

Showing 2,235 of 2,235 total issues

Argument 1 (str) is ?'app'|?'data'|?string but \substr() takes string
Open

            if (substr($type, 0, 5) === 'conf_') {
Severity: Minor
Found in src/Application/Restore.php by phan

Argument 2 (version) is \TikiManager\Application\Version|string but \TikiManager\Application\Application::performUpdate() takes null defined at /code/src/Application/Application.php:110
Open

            $filesToResolve = $app->performUpdate($instance, $target, $options);
Severity: Minor
Found in src/Command/UpdateInstanceCommand.php by phan

Argument 1 (str) is ?string but \rtrim() takes string
Open

        $src = rtrim($src, '/\\');
Severity: Minor
Found in src/Application/Restore.php by phan

Call with 2 arg(s) to \TikiManager\Style\TikiManagerStyle::__construct() which only takes 0 arg(s) defined at /code/src/Style/TikiManagerStyle.php:12
Open

        $container->set('io', new TikiManagerStyle($input, $output));
Severity: Info
Found in src/Config/Environment.php by phan

Argument 1 (str) is null but \strtolower() takes string
Open

        $v->type = strtolower($type);
Severity: Minor
Found in src/Application/Version.php by phan

Argument 2 (logger) is \Symfony\Component\Console\Logger\ConsoleLogger but \TikiManager\Command\Helper\CommandHelper::clearFolderContents() takes \Psr\Log\LoggerInterface defined at /code/src/Command/Helper/CommandHelper.php:437
Open

        $result = CommandHelper::clearFolderContents($logsPath, $logger);
Severity: Minor
Found in src/Command/ClearLogsCommand.php by phan

Suspicious array access to nullable ?array
Open

        if (! file_exists($_ENV['SSH_KEY']) || ! file_exists($_ENV['SSH_PUBLIC_KEY'])) {
Severity: Minor
Found in src/Config/Environment.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

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

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

Argument 2 (logger) is \Symfony\Component\Console\Logger\ConsoleLogger but \TikiManager\Command\Helper\CommandHelper::removeFiles() takes \Psr\Log\LoggerInterface defined at /code/src/Command/Helper/CommandHelper.php:471
Open

        $result = CommandHelper::removeFiles($databaseFile, $logger);
Severity: Minor
Found in src/Command/ResetManagerCommand.php by phan

Possibly zero references to use statement for classlike/namespace SymfonyStyle (\Symfony\Component\Console\Style\SymfonyStyle)
Open

use Symfony\Component\Console\Style\SymfonyStyle;
Severity: Minor
Found in src/Libs/Helpers/Checksum.php by phan

Call with 1 arg(s) to \TikiManager\Application\Application::getCompatibleVersions() which only takes 0 arg(s) defined at /code/src/Application/Application.php:57
Open

                $versions = $app->getCompatibleVersions(false);
Severity: Info
Found in src/Command/TikiVersionCommand.php by phan

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

use TikiManager\Application\Tiki;

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

use TikiManager\Application\Instance;
Severity: Minor
Found in src/Command/UpgradeInstanceCommand.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

Saw possibly unextractable annotation for a fragment of comment '* @param string Character which could be use in the': after string, did not see an element name (will guess based on comment order)
Open

     * @param  string  Character which could be use in the
Severity: Info
Found in src/Ext/Password.php by phan

Doc-block of $fetchMode in query is phpdoc param type int which is not a permitted replacement of the nullable param type ?int declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param int $fetchMode
Severity: Minor
Found in src/Libs/Helpers/PDOWrapper.php by phan

Argument 3 (files) is null but \TikiManager\Libs\Host\Local::windowsSync() takes array defined at /code/src/Libs/Host/Local.php:235
Open

                null,
Severity: Minor
Found in src/Access/Local.php by phan

Argument 1 (str) is int but \md5() takes string
Open

            [Environment::get('TEMP_FOLDER'), md5(time()), basename($this->instance->webroot)]
Severity: Minor
Found in src/Application/Backup.php by phan

Argument 1 (string) is ?string but \strlen() takes string
Open

                        $target = substr($target, 0, strlen($target)-strlen($info['extension'])-1)
Severity: Minor
Found in src/Application/Restore.php by phan
Severity
Category
Status
Source
Language