Category | Errors | Infos | Files |
---|---|---|---|
DeprecatedInterface | 0 | 1 | 1 |
UnusedClass | 0 | 22 | 17 |
MissingConstructor | 0 | 2 | 1 |
MissingReturnType | 0 | 152 | 6 |
MissingParamType | 0 | 114 | 1 |
DeprecatedMethod | 0 | 4 | 0 |
MissingClosureParamType | 0 | 8 | 0 |
InvalidReturnType | 0 | 1 | 0 |
UndefinedConstant | 0 | 5 | 0 |
MissingPropertyType | 0 | 40 | 5 |
MissingClosureReturnType | 0 | 6 | 1 |
PossiblyFalseOperand | 0 | 2 | 0 |
PropertyNotSetInConstructor | 0 | 17 | 4 |
InvalidArrayOffset | 0 | 6 | 0 |
UninitializedProperty | 0 | 1 | 0 |
PossiblyUnusedMethod | 0 | 1 | 0 |
ArgumentTypeCoercion | 0 | 5 | 0 |
InvalidFunctionCall | 0 | 1 | 0 |
RedundantCondition | 2 | 0 | 1 |
PossiblyInvalidArgument | 0 | 2 | 0 |
PossiblyInvalidCast | 0 | 1 | 0 |
UndefinedClass | 0 | 1 | 0 |
ReservedWord | 0 | 5 | 0 |
UndefinedThisPropertyAssignment | 1 | 0 | 0 |
UndefinedThisPropertyFetch | 3 | 0 | 0 |
PropertyTypeCoercion | 0 | 1 | 0 |
TooManyArguments | 0 | 1 | 0 |
6 | 399 | 37 |
Error | Line From | Line To | ||
---|---|---|---|---|
RoboFile.php | ||||
info | Robo\Contract\OutputAwareInterface is marked deprecated DeprecatedInterface | 5 | 5 | |
info | Class Edge\QA\RoboFile is never used UnusedClass | 5 | 5 | |
src/CodeAnalysisTasks.php | ||||
info | Edge\QA\RoboFile has an uninitialized property Edge\QA\CodeAnalysisTasks::$tools, but no constructor MissingConstructor | 10 | 10 | |
info | Edge\QA\RoboFile has an uninitialized property Edge\QA\CodeAnalysisTasks::$options, but no constructor MissingConstructor | 12 | 12 | |
info | Method Edge\QA\CodeAnalysisTasks::tools does not have a return type, expecting void MissingReturnType | 18 | 18 | |
info | Parameter $opts has no provided type MissingParamType | 19 | 19 | |
info | The method Robo\Common\OutputAwareTrait::getOutput has been marked as deprecated DeprecatedMethod | 24 | 24 | |
info | Method Edge\QA\CodeAnalysisTasks::ci does not have a return type MissingReturnType | 41 | 41 | |
info | Parameter $opts has no provided type MissingParamType | 42 | 42 | |
info | Method Edge\QA\CodeAnalysisTasks::normalizeCliOptions does not have a return type, expecting non-empty-array<array-key, mixed> MissingReturnType | 65 | 65 | |
info | The method Robo\Common\InputAwareTrait::getInput has been marked as deprecated DeprecatedMethod | 71 | 71 | |
info | Method Edge\QA\CodeAnalysisTasks::loadConfig does not have a return type, expecting void MissingReturnType | 75 | 75 | |
info | Parameter $text has no provided type MissingClosureParamType | 79 | 79 | |
info | Method Edge\QA\CodeAnalysisTasks::ciClean does not have a return type, expecting void MissingReturnType | 129 | 129 | |
info | Method Edge\QA\CodeAnalysisTasks::runTools does not have a return type, expecting void MissingReturnType | 139 | 139 | |
info | The declared return type 'Robo\Task\Base\Exec' for Edge\QA\CodeAnalysisTasks::toolToExec is incorrect, got 'Robo\Collection\CollectionBuilder|Robo\Task\Base\Exec' InvalidReturnType | 149 | 149 | |
info | Method Edge\QA\CodeAnalysisTasks::buildHtmlReport does not have a return type, expecting void MissingReturnType | 164 | 164 | |
info | The method Robo\Common\OutputAwareTrait::getOutput has been marked as deprecated DeprecatedMethod | 166 | 166 | |
info | Const PHPQA_USED_COMMAND is not defined UndefinedConstant | 203 | 203 | |
info | Method Edge\QA\CodeAnalysisTasks::buildSummary does not have a return type MissingReturnType | 212 | 212 | |
info | The method Robo\Common\OutputAwareTrait::getOutput has been marked as deprecated DeprecatedMethod | 214 | 214 | |
src/Config.php | ||||
info | Property Edge\QA\Config::$configs does not have a declared type - consider array<array-key, array<array-key, array>|mixed>|mixed MissingPropertyType | 9 | 9 | |
info | Property Edge\QA\Config::$cwd does not have a declared type - consider false|mixed|string MissingPropertyType | 10 | 10 | |
info | Parameter $cwd has no provided type MissingParamType | 12 | 12 | |
info | Method Edge\QA\Config::loadUserConfig does not have a return type, expecting void MissingReturnType | 18 | 18 | |
info | Parameter $directories has no provided type MissingParamType | 18 | 18 | |
info | Method Edge\QA\Config::loadConfig does not have a return type, expecting void MissingReturnType | 28 | 28 | |
info | Parameter $directory has no provided type MissingParamType | 28 | 28 | |
info | Parameter $isUserDirectory has no provided type MissingParamType | 28 | 28 | |
info | Property Edge\QA\Config::$configs does not have a declared type MissingPropertyType | 36 | 36 | |
info | Method Edge\QA\Config::mergeConfigs does not have a return type, expecting void MissingReturnType | 45 | 45 | |
info | Parameter $key has no provided type MissingParamType | 45 | 45 | |
info | Method Edge\QA\Config::getCustomBinary does not have a return type MissingReturnType | 55 | 55 | |
info | Parameter $tool has no provided type MissingParamType | 55 | 55 | |
info | Method Edge\QA\Config::value does not have a return type MissingReturnType | 64 | 64 | |
info | Parameter $path has no provided type MissingParamType | 64 | 64 | |
info | Closure does not have a return type, expecting mixed MissingClosureReturnType | 68 | 68 | |
info | Parameter $value has no provided type MissingClosureParamType | 68 | 68 | |
info | Method Edge\QA\Config::path does not have a return type MissingReturnType | 74 | 74 | |
info | Parameter $path has no provided type MissingParamType | 74 | 74 | |
info | Parameter $file has no provided type MissingClosureParamType | 78 | 78 | |
info | Parameter $dir has no provided type MissingClosureParamType | 78 | 78 | |
info | Method Edge\QA\Config::pathsOrValues does not have a return type MissingReturnType | 88 | 88 | |
info | Parameter $path has no provided type MissingParamType | 88 | 88 | |
info | Parameter $values has no provided type MissingClosureParamType | 92 | 92 | |
info | Parameter $dir has no provided type MissingClosureParamType | 92 | 92 | |
info | Method Edge\QA\Config::csv does not have a return type MissingReturnType | 104 | 104 | |
info | Parameter $path has no provided type MissingParamType | 104 | 104 | |
info | Parameter $separator has no provided type MissingParamType | 104 | 104 | |
info | Closure does not have a return type, expecting mixed MissingClosureReturnType | 106 | 106 | |
info | Parameter $path has no provided type MissingClosureParamType | 106 | 106 | |
info | Parameter $value has no provided type MissingClosureParamType | 109 | 109 | |
info | Method Edge\QA\Config::get does not have a return type MissingReturnType | 121 | 121 | |
info | Parameter $path has no provided type MissingParamType | 121 | 121 | |
info | Parameter $extractor has no provided type MissingParamType | 121 | 121 | |
info | Method Edge\QA\Config::findInConfig does not have a return type MissingReturnType | 131 | 131 | |
info | Parameter $path has no provided type MissingParamType | 131 | 131 | |
info | Method Edge\QA\Config::throwInvalidPath does not have a return type, expecting never MissingReturnType | 143 | 143 | |
info | Parameter $source has no provided type MissingParamType | 143 | 143 | |
info | Parameter $path has no provided type MissingParamType | 143 | 143 | |
src/IgnoredPaths.php | ||||
info | Property Edge\QA\IgnoredPaths::$ignoreDirs does not have a declared type - consider mixed MissingPropertyType | 7 | 7 | |
info | Property Edge\QA\IgnoredPaths::$ignoreFiles does not have a declared type - consider mixed MissingPropertyType | 8 | 8 | |
info | Property Edge\QA\IgnoredPaths::$ignoreBoth does not have a declared type - consider array MissingPropertyType | 9 | 9 | |
info | Property Edge\QA\IgnoredPaths::$isWindows does not have a declared type - consider bool|null MissingPropertyType | 10 | 10 | |
info | Parameter $ignoredDirs has no provided type MissingParamType | 12 | 12 | |
info | Parameter $ignoredFiles has no provided type MissingParamType | 12 | 12 | |
info | Method Edge\QA\IgnoredPaths::setOS does not have a return type, expecting void MissingReturnType | 20 | 20 | |
info | Parameter $os has no provided type MissingParamType | 20 | 20 | |
info | Method Edge\QA\IgnoredPaths::csvToArray does not have a return type, expecting array<int, string> MissingReturnType | 25 | 25 | |
info | Parameter $csv has no provided type MissingParamType | 25 | 25 | |
info | Method Edge\QA\IgnoredPaths::phpcs does not have a return type MissingReturnType | 32 | 32 | |
info | Method Edge\QA\IgnoredPaths::pdepend does not have a return type MissingReturnType | 37 | 37 | |
info | Method Edge\QA\IgnoredPaths::phpmd does not have a return type MissingReturnType | 45 | 45 | |
info | Method Edge\QA\IgnoredPaths::pdependWindowsFilter does not have a return type, expecting string MissingReturnType | 53 | 53 | |
info | Parameter $option has no provided type MissingParamType | 53 | 53 | |
info | Method Edge\QA\IgnoredPaths::phpmetrics does not have a return type MissingReturnType | 58 | 58 | |
info | Method Edge\QA\IgnoredPaths::phpmetrics2 does not have a return type MissingReturnType | 63 | 63 | |
info | Method Edge\QA\IgnoredPaths::bergmann does not have a return type MissingReturnType | 68 | 68 | |
info | Method Edge\QA\IgnoredPaths::parallelLint does not have a return type MissingReturnType | 73 | 73 | |
info | Method Edge\QA\IgnoredPaths::phpstan does not have a return type MissingReturnType | 78 | 78 | |
info | Method Edge\QA\IgnoredPaths::psalm does not have a return type, expecting array{directory: mixed, file: mixed} MissingReturnType | 83 | 83 | |
info | Method Edge\QA\IgnoredPaths::ignore does not have a return type MissingReturnType | 91 | 91 | |
info | Parameter $before has no provided type MissingParamType | 91 | 91 | |
info | Parameter $dirSeparator has no provided type MissingParamType | 91 | 91 | |
info | Parameter $after has no provided type MissingParamType | 91 | 91 | |
info | Parameter $fileSeparator has no provided type MissingParamType | 91 | 91 | |
info | Method Edge\QA\IgnoredPaths::implode does not have a return type, expecting string MissingReturnType | 106 | 106 | |
info | Parameter $before has no provided type MissingParamType | 106 | 106 | |
info | Parameter $separator has no provided type MissingParamType | 106 | 106 | |
info | Parameter $after has no provided type MissingParamType | 106 | 106 | |
src/Options.php | ||||
info | Method Edge\QA\Options::loadOutput does not have a return type, expecting void MissingReturnType | 35 | 35 | |
info | Method Edge\QA\Options::getCommonRootPath does not have a return type, expecting string MissingReturnType | 51 | 51 | |
info | Method Edge\QA\Options::getAnalyzedDirs does not have a return type, expecting array<array-key, string>|string MissingReturnType | 63 | 63 | |
info | Parameter $separator has no provided type MissingParamType | 63 | 63 | |
info | Method Edge\QA\Options::loadTools does not have a return type, expecting void MissingReturnType | 68 | 68 | |
info | Parameter $inputTools has no provided type MissingParamType | 68 | 68 | |
info | Method Edge\QA\Options::buildRunningTools does not have a return type MissingReturnType | 83 | 83 | |
info | Method Edge\QA\Options::sortTools does not have a return type, expecting array<array-key, mixed> MissingReturnType | 101 | 101 | |
info | Left operand cannot be falsable, got false|int PossiblyFalseOperand | 107 | 107 | |
info | Right operand cannot be falsable, got false|int PossiblyFalseOperand | 107 | 107 | |
info | Method Edge\QA\Options::toFile does not have a return type MissingReturnType | 113 | 113 | |
info | Parameter $file has no provided type MissingParamType | 113 | 113 | |
info | Method Edge\QA\Options::rawFile does not have a return type, expecting non-empty-string MissingReturnType | 118 | 118 | |
info | Parameter $file has no provided type MissingParamType | 118 | 118 | |
src/RunningTool.php | ||||
info | Property Edge\QA\RunningTool::$tool does not have a declared type - consider mixed MissingPropertyType | 7 | 7 | |
info | Property Edge\QA\RunningTool::$internalClasses does not have a declared type - consider array MissingPropertyType | 8 | 8 | |
info | Property Edge\QA\RunningTool::$internalDependencies does not have a declared type - consider array MissingPropertyType | 9 | 9 | |
info | Property Edge\QA\RunningTool::$optionSeparator does not have a declared type - consider mixed MissingPropertyType | 10 | 10 | |
info | Property Edge\QA\RunningTool::$outputMode does not have a declared type - consider mixed MissingPropertyType | 11 | 11 | |
info | Property Edge\QA\RunningTool::$xmlFiles does not have a declared type - consider mixed MissingPropertyType | 13 | 13 | |
info | Property Edge\QA\RunningTool::$errorsXPath does not have a declared type - consider array MissingPropertyType | 14 | 14 | |
info | Property Edge\QA\RunningTool::$errorsType does not have a declared type MissingPropertyType | 15 | 15 | |
info | Property Edge\QA\RunningTool::$allowedErrorsCount does not have a declared type - consider mixed MissingPropertyType | 16 | 16 | |
info | Property Edge\QA\RunningTool::$htmlReport does not have a declared type MissingPropertyType | 18 | 18 | |
info | Property Edge\QA\RunningTool::$userReports does not have a declared type - consider array MissingPropertyType | 19 | 19 | |
info | Property Edge\QA\RunningTool::$isExecutable does not have a declared type MissingPropertyType | 20 | 20 | |
info | Property Edge\QA\RunningTool::$process is not defined in constructor of Edge\QA\RunningTool or in any private or final methods called in the constructor PropertyNotSetInConstructor | 22 | 22 | |
info | Parameter $tool has no provided type MissingParamType | 24 | 24 | |
info | Cannot create offset of type mixed|null, expecting array-key InvalidArrayOffset | 41 | 41 | |
info | Cannot use uninitialized property $this->errorsXPath UninitializedProperty | 41 | 41 | |
info | Method Edge\QA\RunningTool::isInstalled does not have a return type, expecting bool MissingReturnType | 46 | 46 | |
info | Method Edge\QA\RunningTool::isAtLeastOneClassInstalled does not have a return type, expecting bool MissingReturnType | 52 | 52 | |
info | Method Edge\QA\RunningTool::hasOutput does not have a return type, expecting bool MissingReturnType | 65 | 65 | |
info | Parameter $outputMode has no provided type MissingParamType | 65 | 65 | |
info | Method Edge\QA\RunningTool::buildOption does not have a return type, expecting non-empty-string MissingReturnType | 70 | 70 | |
info | Parameter $arg has no provided type MissingParamType | 70 | 70 | |
info | Parameter $value has no provided type MissingParamType | 70 | 70 | |
info | Method Edge\QA\RunningTool::getAllowedErrorsCount does not have a return type MissingReturnType | 79 | 79 | |
info | Method Edge\QA\RunningTool::analyzeResult does not have a return type MissingReturnType | 84 | 84 | |
info | Parameter $hasNoOutput has no provided type MissingParamType | 84 | 84 | |
info | Method Edge\QA\RunningTool::evaluteErrorsCount does not have a return type, expecting array{bool, mixed} MissingReturnType | 106 | 106 | |
info | Parameter $errorsCount has no provided type MissingParamType | 106 | 106 | |
info | Method Edge\QA\RunningTool::areErrorsIgnored does not have a return type, expecting bool MissingReturnType | 112 | 112 | |
info | Cannot find explicit calls to method Edge\QA\RunningTool::getXmlFiles (but did find some potential callers) PossiblyUnusedMethod | 117 | 117 | |
info | Method Edge\QA\RunningTool::getXmlFiles does not have a return type MissingReturnType | 117 | 117 | |
info | Method Edge\QA\RunningTool::getEscapedXmlFile does not have a return type MissingReturnType | 122 | 122 | |
info | Method Edge\QA\RunningTool::getMainXml does not have a return type MissingReturnType | 127 | 127 | |
info | Method Edge\QA\RunningTool::getHtmlRootReports does not have a return type, expecting list<array{file: mixed, id: non-empty-string, name: mixed}> MissingReturnType | 132 | 132 | |
src/Task/AssetsLoader.php | ||||
info | Method Edge\QA\Task\AssetsLoader::downloadUrl does not have a return type, expecting bool|string MissingReturnType | 37 | 37 | |
info | Parameter $url has no provided type MissingParamType | 37 | 37 | |
info | Method Edge\QA\Task\AssetsLoader::writeln does not have a return type, expecting void MissingReturnType | 55 | 55 | |
info | Parameter $text has no provided type MissingParamType | 55 | 55 | |
info | Parameter $color has no provided type MissingParamType | 55 | 55 | |
src/Task/TableSummary.php | ||||
info | Method Edge\QA\Task\TableSummary::result does not have a return type, expecting 0|1 MissingReturnType | 46 | 46 | |
info | Method Edge\QA\Task\TableSummary::getStatus does not have a return type, expecting "<error>x</error>"|"<info>✓</info>" MissingReturnType | 62 | 62 | |
info | Parameter $isOk has no provided type MissingParamType | 62 | 62 | |
info | Method Edge\QA\Task\TableSummary::writeln does not have a return type, expecting void MissingReturnType | 68 | 68 | |
info | Parameter $text has no provided type MissingParamType | 68 | 68 | |
info | Parameter $color has no provided type MissingParamType | 68 | 68 | |
src/Tools/AnalyzeResults.php | ||||
info | Property Edge\QA\RunningTool::$isExecutable does not have a declared type MissingPropertyType | 26 | 26 | |
info | Property Edge\QA\RunningTool::$htmlReport does not have a declared type MissingPropertyType | 37 | 37 | |
src/Tools/Analyzer/Deptrac.php | ||||
info | Class Edge\QA\Tools\Analyzer\Deptrac is never used UnusedClass | 7 | 7 | |
src/Tools/Analyzer/ParallelLint.php | ||||
info | Class Edge\QA\Tools\Analyzer\ParallelLint is never used UnusedClass | 7 | 7 | |
src/Tools/Analyzer/Pdepend.php | ||||
info | Class Edge\QA\Tools\Analyzer\Pdepend is never used UnusedClass | 5 | 5 | |
src/Tools/Analyzer/PhpCsFixer.php | ||||
info | Class Edge\QA\Tools\Analyzer\PhpCsFixer is never used UnusedClass | 7 | 7 | |
src/Tools/Analyzer/PhpMetrics.php | ||||
info | Class Edge\QA\Tools\Analyzer\PhpMetrics is never used UnusedClass | 7 | 7 | |
src/Tools/Analyzer/PhpMetricsV2.php | ||||
info | Class Edge\QA\Tools\Analyzer\PhpMetricsV2 is never used UnusedClass | 5 | 5 | |
src/Tools/Analyzer/Phpcpd.php | ||||
info | Class Edge\QA\Tools\Analyzer\Phpcpd is never used UnusedClass | 5 | 5 | |
src/Tools/Analyzer/Phpcs.php | ||||
info | Class Edge\QA\Tools\Analyzer\Phpcs is never used UnusedClass | 5 | 5 | |
info | Cannot create offset of type bool, expecting array-key InvalidArrayOffset | 10 | 14 | |
info | Property Edge\QA\RunningTool::$userReports does not have a declared type MissingPropertyType | 34 | 34 | |
src/Tools/Analyzer/Phploc.php | ||||
info | Class Edge\QA\Tools\Analyzer\Phploc is never used UnusedClass | 5 | 5 | |
src/Tools/Analyzer/Phpmd.php | ||||
info | Class Edge\QA\Tools\Analyzer\Phpmd is never used UnusedClass | 5 | 5 | |
info | Cannot create offset of type bool, expecting array-key InvalidArrayOffset | 10 | 14 | |
src/Tools/Analyzer/Phpstan.php | ||||
info | Closure does not have a return type, expecting list<non-falsy-string> MissingClosureReturnType | 22 | 22 | |
info | Method Edge\QA\Tools\Analyzer\Phpstan::getErrorFormatOption does not have a return type, expecting "error-format"|"errorFormat" MissingReturnType | 59 | 59 | |
info | Method Edge\QA\Tools\Analyzer\Phpstan::buildConfig does not have a return type MissingReturnType | 64 | 64 | |
info | Parameter $existingConfig has no provided type MissingParamType | 64 | 64 | |
info | Parameter $autoloadDirectories has no provided type MissingParamType | 64 | 64 | |
info | Parameter $ignoredPaths has no provided type MissingParamType | 64 | 64 | |
info | Cannot access value on variable $config['parameters'] using offset value of 'excludes_analyse', expecting 'autoload_directories' or 'excludePaths' InvalidArrayOffset | 91 | 91 | |
info | Cannot access value on variable $config['parameters'] using offset value of 'excludes_analyse', expecting 'autoload_directories' or 'excludePaths' InvalidArrayOffset | 93 | 93 | |
src/Tools/Analyzer/Phpunit.php | ||||
info | Class Edge\QA\Tools\Analyzer\Phpunit is never used UnusedClass | 7 | 7 | |
info | Property Edge\QA\RunningTool::$userReports does not have a declared type MissingPropertyType | 27 | 27 | |
info | Method Edge\QA\Tools\Analyzer\Phpunit::getFile does not have a return type, expecting array{non-empty-string, non-empty-string|null} MissingReturnType | 34 | 34 | |
info | Parameter $report has no provided type MissingParamType | 34 | 34 | |
info | Parameter $format has no provided type MissingParamType | 34 | 34 | |
src/Tools/Analyzer/Psalm.php | ||||
info | Class Edge\QA\Tools\Analyzer\Psalm is never used UnusedClass | 8 | 8 | |
info | Method Edge\QA\Tools\Analyzer\Psalm::updateProjectFiles does not have a return type MissingReturnType | 49 | 49 | |
info | Parameter $rawXml has no provided type MissingParamType | 49 | 49 | |
info | Method Edge\QA\Tools\Analyzer\Psalm::simpleXMLToPrettyString does not have a return type, expecting false|string MissingReturnType | 82 | 82 | |
info | Argument 1 of DOMDocument::loadXML expects non-empty-string, parent type string provided ArgumentTypeCoercion | 87 | 87 | |
src/Tools/Analyzer/SecurityChecker.php | ||||
info | Class Edge\QA\Tools\Analyzer\SecurityChecker is never used UnusedClass | 7 | 7 | |
info | Method Edge\QA\Tools\Analyzer\SecurityChecker::detectComposerLock does not have a return type, expecting non-empty-string MissingReturnType | 28 | 28 | |
src/Tools/GetVersions.php | ||||
info | Method Edge\QA\Tools\GetVersions::hasToolVersion does not have a return type MissingReturnType | 9 | 9 | |
info | Parameter $operator has no provided type MissingParamType | 9 | 9 | |
info | Parameter $version has no provided type MissingParamType | 9 | 9 | |
info | Const PHPQA_VERSION is not defined UndefinedConstant | 20 | 20 | |
info | Const PHPQA_VERSION is not defined UndefinedConstant | 21 | 21 | |
info | Method Edge\QA\Tools\GetVersions::findComposerPackages does not have a return type, expecting array<array-key, mixed> MissingReturnType | 39 | 39 | |
info | Const COMPOSER_VENDOR_DIR is not defined UndefinedConstant | 41 | 41 | |
info | Method Edge\QA\Tools\GetVersions::analyzeTool does not have a return type, expecting array{authors: mixed, composer: string, version: mixed, version_normalized: mixed} MissingReturnType | 60 | 60 | |
info | Parameter $tool has no provided type MissingParamType | 60 | 60 | |
info | Method Edge\QA\Tools\GetVersions::normalizeVersion does not have a return type MissingReturnType | 113 | 113 | |
info | Method Edge\QA\Tools\GetVersions::groupAuthors does not have a return type, expecting string MissingReturnType | 121 | 121 | |
info | Closure does not have a return type, expecting mixed MissingClosureReturnType | 126 | 126 | |
info | Method Edge\QA\Tools\GetVersions::loadVersionFromConsoleCommand does not have a return type MissingReturnType | 134 | 134 | |
info | Parameter $command has no provided type MissingParamType | 134 | 134 | |
info | Method Edge\QA\Tools\GetVersions::createSymfonyProcess does not have a return type, expecting Symfony\Component\Process\Process MissingReturnType | 146 | 146 | |
info | Parameter $command has no provided type MissingParamType | 146 | 146 | |
info | Argument 1 of method_exists expects class-string|object, parent type "Symfony\\Component\\Process\\Process" provided ArgumentTypeCoercion | 148 | 148 | |
info | Method Edge\QA\Tools\GetVersions::extractVersionFromConsole does not have a return type MissingReturnType | 155 | 155 | |
info | Parameter $text has no provided type MissingParamType | 155 | 155 | |
info | Method Edge\QA\Tools\GetVersions::normalizeSemver does not have a return type, expecting null|string MissingReturnType | 171 | 171 | |
info | Parameter $semver has no provided type MissingParamType | 171 | 171 | |
info | Method Edge\QA\Tools\GetVersions::compareVersions does not have a return type, expecting bool MissingReturnType | 176 | 176 | |
info | Parameter $toolVersion has no provided type MissingParamType | 176 | 176 | |
info | Parameter $operator has no provided type MissingParamType | 176 | 176 | |
info | Parameter $version has no provided type MissingParamType | 176 | 176 | |
src/Tools/Tool.php | ||||
info | Parameter $presenter has no provided type MissingParamType | 22 | 22 | |
info | Method Edge\QA\Tools\Tool::__invoke does not have a return type MissingReturnType | 30 | 30 | |
info | Method Edge\QA\Tools\Tool::saveDynamicConfig does not have a return type MissingReturnType | 32 | 32 | |
info | Parameter $config has no provided type MissingParamType | 32 | 32 | |
info | Parameter $fileExtension has no provided type MissingParamType | 32 | 32 | |
info | Method Edge\QA\Tools\Tool::toolVersionIs does not have a return type MissingReturnType | 40 | 40 | |
info | Parameter $operator has no provided type MissingParamType | 40 | 40 | |
info | Parameter $version has no provided type MissingParamType | 40 | 40 | |
info | Method Edge\QA\Tools\Tool::writeln does not have a return type, expecting void MissingReturnType | 51 | 51 | |
info | Parameter $text has no provided type MissingParamType | 51 | 51 | |
src/Tools/Tools.php | ||||
info | Property Edge\QA\Tools\Tools::$config does not have a declared type - consider Edge\QA\Config MissingPropertyType | 11 | 11 | |
info | Property Edge\QA\Tools\Tools::$tools does not have a declared type - consider array<array-key, mixed|null>|mixed MissingPropertyType | 12 | 12 | |
info | Property Edge\QA\Tools\Tools::$selectedTools does not have a declared type - consider mixed|null MissingPropertyType | 13 | 13 | |
info | Property Edge\QA\Tools\Tools::$presenter does not have a declared type - consider mixed MissingPropertyType | 14 | 14 | |
info | Parameter $presenter has no provided type MissingParamType | 16 | 16 | |
info | Method Edge\QA\Tools\Tools::loadTools does not have a return type, expecting void MissingReturnType | 24 | 24 | |
info | Property Edge\QA\Tools\Tools::$config does not have a declared type MissingPropertyType | 26 | 26 | |
info | Closure does not have a return type, expecting mixed MissingClosureReturnType | 28 | 28 | |
info | Argument 2 of is_subclass_of expects class-string, parent type "Edge\\QA\\Tools\\Tool" provided ArgumentTypeCoercion | 30 | 30 | |
info | Property Edge\QA\Tools\Tools::$tools does not have a declared type MissingPropertyType | 58 | 58 | |
info | Method Edge\QA\Tools\Tools::getExecutableTools does not have a return type, expecting array<array-key, mixed> MissingReturnType | 62 | 62 | |
info | Closure does not have a return type, expecting mixed MissingClosureReturnType | 69 | 69 | |
info | Property Edge\QA\RunningTool::$isExecutable does not have a declared type MissingPropertyType | 70 | 70 | |
info | Method Edge\QA\Tools\Tools::buildCommand does not have a return type, expecting array{mixed, mixed} MissingReturnType | 75 | 75 | |
info | Cannot treat type object as callable InvalidFunctionCall | 80 | 80 | |
info | Method Edge\QA\Tools\Tools::getReport does not have a return type MissingReturnType | 85 | 85 | |
info | Method Edge\QA\Tools\Tools::getAssets does not have a return type MissingReturnType | 90 | 90 | |
info | Method Edge\QA\Tools\Tools::getSummary does not have a return type MissingReturnType | 95 | 95 | |
info | Method Edge\QA\Tools\Tools::getVersions does not have a return type MissingReturnType | 101 | 101 | |
src/invalid/new-feature.php | ||||
error | Operand of type true is always true RedundantCondition | 1 | 1 | |
error | Operand of type true is always true RedundantCondition | 2 | 2 | |
src/paths.php | ||||
info | Method Edge\QA\buildToolBinary does not have a return type MissingReturnType | 5 | 5 | |
info | Parameter $tool has no provided type MissingParamType | 5 | 5 | |
info | Parameter $customBinary has no provided type MissingParamType | 5 | 5 | |
info | Const COMPOSER_BINARY_DIR is not defined UndefinedConstant | 7 | 7 | |
info | Method Edge\QA\buildSafeBinary does not have a return type MissingReturnType | 10 | 10 | |
info | Parameter $unsafeBinary has no provided type MissingParamType | 10 | 10 | |
info | Method Edge\QA\escapePath does not have a return type, expecting non-empty-string MissingReturnType | 21 | 21 | |
info | Parameter $path has no provided type MissingParamType | 21 | 21 | |
info | Method Edge\QA\commonPath does not have a return type, expecting null|string MissingReturnType | 26 | 26 | |
info | Argument 1 of array_slice expects array<array-key, mixed>, possibly different type non-empty-list<string>|string provided PossiblyInvalidArgument | 47 | 47 | |
info | non-empty-list<string> cannot be cast to string PossiblyInvalidCast | 52 | 52 | |
info | Argument 1 of dirname expects string, possibly different type non-empty-list<string>|string provided PossiblyInvalidArgument | 52 | 52 | |
src/report.php | ||||
info | Method Edge\QA\twigToHtml does not have a return type, expecting void MissingReturnType | 9 | 9 | |
info | Parameter $template has no provided type MissingParamType | 9 | 9 | |
info | Parameter $outputFile has no provided type MissingParamType | 9 | 9 | |
info | Class, interface or enum named Twig_Loader_Filesystem does not exist UndefinedClass | 12 | 12 | |
info | Method Edge\QA\xmlToHtml does not have a return type, expecting void MissingReturnType | 22 | 22 | |
info | Parameter $style has no provided type MissingParamType | 22 | 22 | |
info | Parameter $outputFile has no provided type MissingParamType | 22 | 22 | |
info | Method Edge\QA\xmlXpaths does not have a return type, expecting array{int, string} MissingReturnType | 54 | 54 | |
info | Parameter $xmlFile has no provided type MissingParamType | 54 | 54 | |
info | Method Edge\QA\convertPhpErrorsToExceptions does not have a return type, expecting void MissingReturnType | 69 | 69 | |
info | Method Edge\QA\phpErrorToException does not have a return type, expecting void MissingReturnType | 78 | 78 | |
info | Parameter $severity has no provided type MissingParamType | 78 | 78 | |
info | Parameter $message has no provided type MissingParamType | 78 | 78 | |
info | Parameter $filename has no provided type MissingParamType | 78 | 78 | |
info | Parameter $lineno has no provided type MissingParamType | 78 | 78 | |
tests/Config/ConfigTest.php | ||||
info | Class Edge\QA\ConfigTest is never used UnusedClass | 6 | 6 | |
info | Property Edge\QA\ConfigTest::$backupStaticAttributes is not defined in constructor of Edge\QA\ConfigTest or in any methods called in the constructor PropertyNotSetInConstructor | 6 | 6 | |
info | Property Edge\QA\ConfigTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\ConfigTest or in any methods called in the constructor PropertyNotSetInConstructor | 6 | 6 | |
info | Property Edge\QA\ConfigTest::$defaultToolsCount does not have a declared type - consider int MissingPropertyType | 8 | 8 | |
info | Method Edge\QA\ConfigTest::testLoadDefaultConfig does not have a return type, expecting void MissingReturnType | 10 | 10 | |
info | Method Edge\QA\ConfigTest::testBuildAbsolutePath does not have a return type, expecting void MissingReturnType | 44 | 44 | |
info | Method Edge\QA\ConfigTest::testOverrideDefaultConfig does not have a return type, expecting void MissingReturnType | 50 | 50 | |
info | Method Edge\QA\ConfigTest::testAllowPartialUpdateOfTools does not have a return type, expecting void MissingReturnType | 60 | 60 | |
info | Method Edge\QA\ConfigTest::testIgnoreNonExistentUserConfig does not have a return type, expecting void MissingReturnType | 70 | 70 | |
info | Method Edge\QA\ConfigTest::testNoExceptionWhenCwdHasNoConfig does not have a return type, expecting void MissingReturnType | 78 | 78 | |
info | Method Edge\QA\ConfigTest::testThrowExceptionWhenFileDoesNotExist does not have a return type, expecting void MissingReturnType | 85 | 85 | |
info | Method Edge\QA\ConfigTest::testConfigCsvString does not have a return type, expecting void MissingReturnType | 93 | 93 | |
info | Method Edge\QA\ConfigTest::testUseCwdIfNoDirectoryIsSpecified does not have a return type, expecting void MissingReturnType | 101 | 101 | |
info | Method Edge\QA\ConfigTest::testIgnoreInvalidBinaryDoesNotExist does not have a return type, expecting void MissingReturnType | 107 | 107 | |
info | Method Edge\QA\ConfigTest::testToolAndBinaryNameMightNotMatch does not have a return type, expecting void MissingReturnType | 114 | 114 | |
info | Method Edge\QA\ConfigTest::testMultipleConfig does not have a return type, expecting void MissingReturnType | 121 | 121 | |
info | Method Edge\QA\ConfigTest::testAutodetectConfigInCurrentDirectory does not have a return type, expecting void MissingReturnType | 132 | 132 | |
info | Method Edge\QA\ConfigTest::testIgnoreAutodetectedConfigIfUserConfigIsSpecified does not have a return type, expecting void MissingReturnType | 139 | 139 | |
info | Method Edge\QA\ConfigTest::shouldStopPhpqa does not have a return type, expecting void MissingReturnType | 147 | 147 | |
info | void is a reserved word ReservedWord | 152 | 152 | |
info | Argument 1 of Edge\QA\ConfigTest::expectException expects class-string<Throwable>, parent type "Exception" provided ArgumentTypeCoercion | 152 | 152 | |
tests/GetVersionsTest.php | ||||
info | Class Edge\QA\Tools\GetVersionsTest is never used UnusedClass | 5 | 5 | |
info | Property Edge\QA\Tools\GetVersionsTest::$backupStaticAttributes is not defined in constructor of Edge\QA\Tools\GetVersionsTest or in any methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Property Edge\QA\Tools\GetVersionsTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\Tools\GetVersionsTest or in any methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Method Edge\QA\Tools\GetVersionsTest::testNormalizeVersion does not have a return type, expecting void MissingReturnType | 8 | 8 | |
info | Parameter $version has no provided type MissingParamType | 8 | 8 | |
info | Parameter $expectedVersion has no provided type MissingParamType | 8 | 8 | |
info | Method Edge\QA\Tools\GetVersionsTest::provideComposerVersion does not have a return type, expecting array{'full semver': array{"2.7.4", "2.7.4"}, 'major release': array{"2.0.0", "2.0"}, 'minor release': array{"2.7.0", "2.7"}} MissingReturnType | 13 | 13 | |
info | Method Edge\QA\Tools\GetVersionsTest::testCliVersion does not have a return type, expecting void MissingReturnType | 23 | 23 | |
info | Parameter $cliOutput has no provided type MissingParamType | 23 | 23 | |
info | Parameter $expectedVersion has no provided type MissingParamType | 23 | 23 | |
info | Method Edge\QA\Tools\GetVersionsTest::provideCliVersion does not have a return type, expecting array{'custom format': array{"irrelevant v1.10", "1.10"}, 'dev version': array{"irrelevant 4.x-dev@", "4.x"}, 'no space': array{"v1.13.7irrelevant", "1.13.7"}, 'no version': array{"irrelevant text", "irrelevant text"}, 'prefer semver (dev + semver)': array{"4.x-dev@ v1.13.7", "1.13.7"}, 'prefer semver (semver + dev)': array{"v1.13.7 4.x-dev@", "1.13.7"}, 'semver at 2nd line': array{"first\nirrele 4.8.36 vant\nsecond", "4.8.36"}, 'semver at the end': array{"irrelevant 0.12.86", "0.12.86"}, 'semver at the start': array{"0.12.86 irrelevant", "0.12.86"}} MissingReturnType | 28 | 28 | |
info | Method Edge\QA\Tools\GetVersionsTest::testCompareVersions does not have a return type, expecting void MissingReturnType | 44 | 44 | |
info | Parameter $toolVersion has no provided type MissingParamType | 44 | 44 | |
info | Parameter $operator has no provided type MissingParamType | 44 | 44 | |
info | Parameter $version has no provided type MissingParamType | 44 | 44 | |
info | Parameter $expectedResult has no provided type MissingParamType | 44 | 44 | |
info | Method Edge\QA\Tools\GetVersionsTest::provideComparedVersions does not have a return type, expecting array{'dev version is greater than': array{"4.x", ">=", "4", true}, 'is greater than dev version': array{"4", ">=", "4.x", true}, 'is lower?': array{"7", "<", "6", false}, 'no version': array{"", ">", "1", false}, 'semver is greater than': array{"4.1", ">=", "4", true}} MissingReturnType | 49 | 49 | |
tests/IgnoredPathsTest.php | ||||
info | Property Edge\QA\IgnoredPathsTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\IgnoredPathsTest or in any methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Property Edge\QA\IgnoredPathsTest::$backupStaticAttributes is not defined in constructor of Edge\QA\IgnoredPathsTest or in any methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Class Edge\QA\IgnoredPathsTest is never used UnusedClass | 5 | 5 | |
info | Property Edge\QA\IgnoredPathsTest::$operatingSystem does not have a declared type - consider mixed|string MissingPropertyType | 7 | 7 | |
info | Method Edge\QA\IgnoredPathsTest::ignore does not have a return type MissingReturnType | 9 | 9 | |
info | Parameter $tool has no provided type MissingParamType | 9 | 9 | |
info | Parameter $dirs has no provided type MissingParamType | 9 | 9 | |
info | Parameter $files has no provided type MissingParamType | 9 | 9 | |
info | Method Edge\QA\IgnoredPathsTest::testNoOptionWhenNothingIsIgnored does not have a return type, expecting void MissingReturnType | 17 | 17 | |
info | Parameter $tool has no provided type MissingParamType | 17 | 17 | |
info | Method Edge\QA\IgnoredPathsTest::testIgnoreDirectoriesAndFiles does not have a return type, expecting void MissingReturnType | 27 | 27 | |
info | Parameter $tool has no provided type MissingParamType | 27 | 27 | |
info | Parameter $expectedOptions has no provided type MissingParamType | 27 | 27 | |
info | Parameter $os has no provided type MissingParamType | 27 | 27 | |
info | Method Edge\QA\IgnoredPathsTest::provideTools does not have a return type, expecting array{'pdepend + windows': array{"pdepend", array{both: " --ignore=app\\config\\*,vendor\\*,autoload.php,RoboFile.php", dirs: " --ignore=app\\config\\*,vendor\\*", files: " --ignore=autoload.php,RoboFile.php"}, "Windows"}, 'phpmd + windows': array{"phpmd", array{both: " --exclude app\\config\\*,vendor\\*,autoload.php,RoboFile.php", dirs: " --exclude app\\config\\*,vendor\\*", files: " --exclude autoload.php,RoboFile.php"}, "WIN32"}, 0: array{"phpcs", array{both: " --ignore=*/app/config/*,*/vendor/*,autoload.php,RoboFile.php", dirs: " --ignore=*/app/config/*,*/vendor/*", files: " --ignore=autoload.php,RoboFile.php"}}, 1: array{"pdepend", array{both: " --ignore=/app/config/,/vendor/,/autoload.php,/RoboFile.php", dirs: " --ignore=/app/config/,/vendor/", files: " --ignore=/autoload.php,/RoboFile.php"}}, 2: array{"phpmd", array{both: " --exclude /app/config/,/vendor/,/autoload.php,/RoboFile.php", dirs: " --exclude /app/config/,/vendor/", files: " --exclude /autoload.php,/RoboFile.php"}}, 3: array{"phpmetrics", array{both: " --excluded-dirs=\"app/config|vendor|autoload.php|RoboFile.php\"", dirs: " --excluded-dirs=\"app/config|vendor\"", files: " --excluded-dirs=\"autoload.php|RoboFile.php\""}}, 4: array{"phpmetrics2", array{both: " --exclude=\"app/config,vendor,autoload.php,RoboFile.php\"", dirs: " --exclude=\"app/config,vendor\"", files: " --exclude=\"autoload.php,RoboFile.php\""}}, 5: array{"bergmann", array{both: " --exclude=app/config --exclude=vendor --exclude=autoload.php --exclude=RoboFile...", dirs: " --exclude=app/config --exclude=vendor", files: " --exclude=autoload.php --exclude=RoboFile.php"}}, 6: array{"parallelLint", array{both: " --exclude app/config --exclude vendor --exclude autoload.php --exclude RoboFile...", dirs: " --exclude app/config --exclude vendor", files: " --exclude autoload.php --exclude RoboFile.php"}}, 7: array{"psalm", array{both: array{directory: array{"app/config", "vendor"}, file: array{"autoload.php", "RoboFile.php"}}, dirs: array{directory: array{"app/config", "vendor"}, file: array<empty, empty>}, files: array{directory: array<empty, empty>, file: array{"autoload.php", "RoboFile.php"}}}}} MissingReturnType | 40 | 40 | |
tests/OptionsTest.php | ||||
info | Class Edge\QA\OptionsTest is never used UnusedClass | 6 | 6 | |
info | Property Edge\QA\OptionsTest::$backupStaticAttributes is not defined in constructor of Edge\QA\OptionsTest or in any methods called in the constructor PropertyNotSetInConstructor | 6 | 6 | |
info | Property Edge\QA\OptionsTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\OptionsTest or in any methods called in the constructor PropertyNotSetInConstructor | 6 | 6 | |
info | Property Edge\QA\OptionsTest::$defaultOptions does not have a declared type - consider array{analyzedDirs: string, buildDir: string, config: string, execution: string, ignoredDirs: string, ignoredFiles: string, output: string, report: false, tools: string, verbose: true} MissingPropertyType | 9 | 9 | |
info | void is a reserved word ReservedWord | 22 | 22 | |
error | Instance property Edge\QA\OptionsTest::$fileOutput is not defined UndefinedThisPropertyAssignment | 24 | 24 | |
info | Method Edge\QA\OptionsTest::overrideOptions does not have a return type, expecting Edge\QA\Options MissingReturnType | 27 | 27 | |
info | Method Edge\QA\OptionsTest::testEscapePaths does not have a return type, expecting void MissingReturnType | 32 | 32 | |
error | Instance property Edge\QA\OptionsTest::$fileOutput is not defined UndefinedThisPropertyFetch | 34 | 34 | |
info | Method Edge\QA\OptionsTest::testRespectToolsOrderDefinedInOption does not have a return type, expecting void MissingReturnType | 40 | 40 | |
info | Method Edge\QA\OptionsTest::testIgnorePdependInCliOutput does not have a return type, expecting void MissingReturnType | 47 | 47 | |
error | Instance property Edge\QA\OptionsTest::$fileOutput is not defined UndefinedThisPropertyFetch | 50 | 50 | |
info | Method Edge\QA\OptionsTest::testIsSuggestedToolInstalled does not have a return type, expecting void MissingReturnType | 55 | 55 | |
info | Parameter $isInstalled has no provided type MissingParamType | 55 | 55 | |
error | Instance property Edge\QA\OptionsTest::$fileOutput is not defined UndefinedThisPropertyFetch | 57 | 57 | |
info | Method Edge\QA\OptionsTest::provideInternalClass does not have a return type, expecting array{'at least one internal class is available': array{array{internalClass: array{"UnknownTool\\UnknownClass", Edge\QA\OptionsTest::class}}, true}, 'dependency is available': array{array{internalClass: Edge\QA\OptionsTest::class, internalDependencies: array{package: Edge\QA\OptionsTest::class}}, true}, 'dependency is not available': array{array{internalClass: Edge\QA\OptionsTest::class, internalDependencies: array{package: "UnknownTool\\UnknownClass"}}, false}, 'internal class is available': array{array{internalClass: "UnknownTool\\UnknownClass"}, false}} MissingReturnType | 61 | 61 | |
info | Method Edge\QA\OptionsTest::testBuildOutput does not have a return type, expecting void MissingReturnType | 84 | 84 | |
info | Parameter $isSavedToFiles has no provided type MissingParamType | 84 | 84 | |
info | Parameter $isOutputPrinted has no provided type MissingParamType | 84 | 84 | |
info | Parameter $hasReport has no provided type MissingParamType | 84 | 84 | |
info | Method Edge\QA\OptionsTest::provideOutputs does not have a return type, expecting array{'ignore verbose and report in CLI output': array{array{output: "cli", report: true, verbose: false}, false, true, false}, 'respect verbose mode and report in FILE output': array{array{output: "file", report: true, verbose: false}, true, false, true}} MissingReturnType | 92 | 92 | |
info | Method Edge\QA\OptionsTest::testExecute does not have a return type, expecting void MissingReturnType | 111 | 111 | |
info | Parameter $isParallel has no provided type MissingParamType | 111 | 111 | |
info | Method Edge\QA\OptionsTest::provideExecutionMode does not have a return type, expecting array{'dont use parallelism if execution is other word': array{array{execution: "single"}, false}, 'parallel execution is default mode': array{array<empty, empty>, true}, 'parallel execution': array{array{execution: "parallel"}, true}} MissingReturnType | 117 | 117 | |
info | Method Edge\QA\OptionsTest::testBuildRootPath does not have a return type, expecting void MissingReturnType | 127 | 127 | |
info | Parameter $analyzedDirs has no provided type MissingParamType | 127 | 127 | |
info | Parameter $expectedRoot has no provided type MissingParamType | 127 | 127 | |
info | Method Edge\QA\OptionsTest::provideAnalyzedDir does not have a return type, expecting array{'current dir + analyzed dir + slash': array{"src", non-empty-string}, 'file directory + skip invalid dir': array{"./non-existent-directory,phpqa", non-empty-string}, 'find common root from multiple dirs': array{"src,tests", non-empty-string}, 'no path when dir is invalid': array{"./non-existent-directory", ""}} MissingReturnType | 133 | 133 | |
info | Method Edge\QA\OptionsTest::testLoadAllowedErrorsCount does not have a return type, expecting void MissingReturnType | 144 | 144 | |
info | Method Edge\QA\OptionsTest::buildRunningTools does not have a return type MissingReturnType | 152 | 152 | |
tests/PathsTest.php | ||||
info | Property Edge\QA\PathsTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\PathsTest or in any methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Property Edge\QA\PathsTest::$backupStaticAttributes is not defined in constructor of Edge\QA\PathsTest or in any methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Class Edge\QA\PathsTest is never used UnusedClass | 5 | 5 | |
info | Method Edge\QA\PathsTest::testPathToBinaryIsEscaped does not have a return type, expecting void MissingReturnType | 7 | 7 | |
tests/Report/ReportTest.php | ||||
info | Property Edge\QA\ReportTest::$backupStaticAttributes is not defined in constructor of Edge\QA\ReportTest or in any private or final methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Property Edge\QA\ReportTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\ReportTest or in any private or final methods called in the constructor PropertyNotSetInConstructor | 5 | 5 | |
info | Class Edge\QA\ReportTest is never used UnusedClass | 5 | 5 | |
info | Property Edge\QA\ReportTest::$output does not have a declared type - consider null|string MissingPropertyType | 7 | 7 | |
info | Property Edge\QA\ReportTest::$phplocXsl does not have a declared type - consider null|string MissingPropertyType | 8 | 8 | |
info | Property Edge\QA\ReportTest::$xmlParams does not have a declared type - consider array{'bootstrap.min.css': string, 'bootstrap.min.js': string, 'jquery.min.js': string} MissingPropertyType | 9 | 9 | |
info | void is a reserved word ReservedWord | 11 | 11 | |
info | Method Edge\QA\ReportTest::testConvertTwigToHtml does not have a return type, expecting void MissingReturnType | 17 | 17 | |
info | Method Edge\QA\ReportTest::testConvertXmlToHtml does not have a return type, expecting void MissingReturnType | 24 | 24 | |
info | Parameter $xml has no provided type MissingParamType | 24 | 24 | |
info | Parameter $assertOutput has no provided type MissingParamType | 24 | 24 | |
info | Method Edge\QA\ReportTest::provideXml does not have a return type, expecting array{'create empty file if something went south': array{"invalid.xml", mixed}, 'create html': array{"phploc.xml", mixed}} MissingReturnType | 30 | 30 | |
info | Method Edge\QA\ReportTest::testIgnoreMissingXmlDocuments does not have a return type, expecting void MissingReturnType | 38 | 38 | |
info | void is a reserved word ReservedWord | 44 | 44 | |
tests/RunningToolTest.php | ||||
info | Class Edge\QA\RunningToolTest is never used UnusedClass | 6 | 6 | |
info | Property Edge\QA\RunningToolTest::$backupStaticAttributes is not defined in constructor of Edge\QA\RunningToolTest or in any methods called in the constructor PropertyNotSetInConstructor | 6 | 6 | |
info | Property Edge\QA\RunningToolTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\RunningToolTest or in any methods called in the constructor PropertyNotSetInConstructor | 6 | 6 | |
info | Property Edge\QA\RunningToolTest::$errorsCountInXmlFile does not have a declared type - consider int MissingPropertyType | 8 | 8 | |
info | Method Edge\QA\RunningToolTest::testBuildOptionWithDefinedSeparator does not have a return type, expecting void MissingReturnType | 10 | 10 | |
info | Method Edge\QA\RunningToolTest::testMarkSuccessWhenXPathIsNotDefined does not have a return type, expecting void MissingReturnType | 18 | 18 | |
info | Method Edge\QA\RunningToolTest::testMarkFailureWhenXmlFileDoesNotExist does not have a return type, expecting void MissingReturnType | 25 | 25 | |
info | Parameter $allowedErrors has no provided type MissingParamType | 25 | 25 | |
info | Parameter $expectedIsOk has no provided type MissingParamType | 25 | 25 | |
info | Method Edge\QA\RunningToolTest::provideAllowedErrorsForNonexistentFile does not have a return type, expecting array{'success when allowed errors are not defined': array{null, true}, 'success when errors count are defined': array{mixed, false}} MissingReturnType | 37 | 37 | |
info | Method Edge\QA\RunningToolTest::testCompareAllowedCountWithErrorsCountFromXml does not have a return type, expecting void MissingReturnType | 46 | 46 | |
info | Parameter $allowedErrors has no provided type MissingParamType | 46 | 46 | |
info | Parameter $isOk has no provided type MissingParamType | 46 | 46 | |
info | Method Edge\QA\RunningToolTest::provideAllowedErrors does not have a return type, expecting array{'failure when errors count > allowed count': array{mixed, false}, 'success when allowed errors are not defined': array{null, true}, 'success when errors count <= allowed count': array{mixed, true}} MissingReturnType | 56 | 56 | |
info | Method Edge\QA\RunningToolTest::testRuntimeSelectionOfErrorXpath does not have a return type, expecting void MissingReturnType | 65 | 65 | |
info | Cannot create offset of type bool, expecting array-key InvalidArrayOffset | 69 | 72 | |
info | Method Edge\QA\RunningToolTest::testMultipleXpaths does not have a return type, expecting void MissingReturnType | 80 | 80 | |
info | Method Edge\QA\RunningToolTest::provideMultipleXpaths does not have a return type, expecting array{'invalid xpath': array{array{null}, array{false, "SimpleXMLElement::xpath(): Invalid expression"}}, 'multiple elements': array{array{"//errors/error", "//errors/warning"}, array{true, 3}}} MissingReturnType | 92 | 92 | |
info | Method Edge\QA\RunningToolTest::testAnalyzeExitCodeInCliMode does not have a return type, expecting void MissingReturnType | 101 | 101 | |
info | Parameter $allowedErrors has no provided type MissingParamType | 101 | 101 | |
info | Parameter $exitCode has no provided type MissingParamType | 101 | 101 | |
info | $tool->process expects 'Symfony\Component\Process\Process', parent type 'object' provided PropertyTypeCoercion | 109 | 111 | |
info | Argument 1 of Edge\QA\RunningToolTest::prophesize expects class-string|null, parent type "Symfony\\Component\\Process\\Process" provided ArgumentTypeCoercion | 109 | 109 | |
info | Too many arguments for method Prophecy\Prophecy\MethodProphecy::willreturn - saw 1 TooManyArguments | 110 | 110 | |
info | Method Edge\QA\RunningToolTest::provideProcess does not have a return type, expecting array{'failure when errors count > allowed count but errors count is always one': array{0, 2, array{false, 1}}, 'success when exit code <= allowed code': array{1, 1, array{true, 1}}, 'success when exit code = 0': array{0, 0, array{true, 0}}} MissingReturnType | 115 | 115 | |
info | Method Edge\QA\RunningToolTest::testCreateUniqueIdForUserReport does not have a return type, expecting void MissingReturnType | 124 | 124 | |
info | Property Edge\QA\RunningTool::$userReports does not have a declared type MissingPropertyType | 127 | 127 | |
tests/Tools/Analyzer/PhpstanTest.php | ||||
info | Property Edge\QA\Tools\Analyzer\PhpstanTest::$runTestInSeparateProcess is not defined in constructor of Edge\QA\Tools\Analyzer\PhpstanTest or in any methods called in the constructor PropertyNotSetInConstructor | 7 | 7 | |
info | Property Edge\QA\Tools\Analyzer\PhpstanTest::$backupStaticAttributes is not defined in constructor of Edge\QA\Tools\Analyzer\PhpstanTest or in any methods called in the constructor PropertyNotSetInConstructor | 7 | 7 | |
info | Class Edge\QA\Tools\Analyzer\PhpstanTest is never used UnusedClass | 7 | 7 | |
info | Property Edge\QA\Tools\Analyzer\PhpstanTest::$autoloadDirectories does not have a declared type - consider array{string} MissingPropertyType | 10 | 10 | |
info | Property Edge\QA\Tools\Analyzer\PhpstanTest::$ignoredPaths does not have a declared type - consider array{string} MissingPropertyType | 11 | 11 | |
info | Method Edge\QA\Tools\Analyzer\PhpstanTest::testBuildConfig does not have a return type, expecting void MissingReturnType | 14 | 14 | |
info | Parameter $existingConfig has no provided type MissingParamType | 14 | 14 | |
info | Parameter $expectedConfig has no provided type MissingParamType | 14 | 14 | |
info | void is a reserved word ReservedWord | 17 | 17 | |
info | Method Edge\QA\Tools\Analyzer\PhpstanTest::provideConfig does not have a return type, expecting array{'Deprecated excludes_analyse': array{existingConfig: array{parameters: array{excludes_analyse: array{"File.php"}, reportUnmatchedIgnoredErrors: false}}, expectedConfig: array{parameters: array{excludes_analyse: array{"File.php", "Test.php"}, reportUnmatchedIgnoredErrors: false}}}, 'No config': array{existingConfig: array<empty, empty>, expectedConfig: array{parameters: array{autoload_directories: mixed, excludePaths: array{analyseAndScan: mixed}}}}, 'No parameters in config': array{existingConfig: array{includes: mixed}, expectedConfig: array{includes: mixed, parameters: array{excludePaths: array{analyseAndScan: mixed}}}}, 'excludePaths + analyseAndScan': array{existingConfig: array{parameters: array{excludePaths: array{analyseAndScan: array{"File.php"}}}}, expectedConfig: array{parameters: array{excludePaths: array{analyseAndScan: array{"File.php", "Test.php"}}}}}, 'excludePaths shortcut': array{existingConfig: array{parameters: array{excludePaths: array{"File.php"}}}, expectedConfig: array{parameters: array{excludePaths: array{"File.php", "Test.php"}}}}} MissingReturnType | 20 | 20 |