Category | Errors | Infos | Files |
---|---|---|---|
DeprecatedInterface | 0 | 1 | 1 |
UnusedClass | 0 | 22 | 21 |
MissingConstructor | 0 | 2 | 1 |
MissingReturnType | 0 | 154 | 5 |
MissingParamType | 0 | 115 | 1 |
DeprecatedMethod | 0 | 5 | 0 |
MissingClosureParamType | 0 | 8 | 0 |
PossiblyUndefinedArrayOffset | 1 | 0 | 0 |
InvalidReturnType | 0 | 1 | 0 |
UndefinedConstant | 0 | 6 | 0 |
MissingPropertyType | 0 | 40 | 5 |
ReservedWord | 0 | 7 | 0 |
MissingClosureReturnType | 0 | 6 | 1 |
RiskyTruthyFalsyComparison | 0 | 5 | 0 |
PossiblyInvalidArgument | 3 | 2 | 0 |
PossiblyFalseOperand | 0 | 2 | 0 |
PropertyNotSetInConstructor | 0 | 1 | 0 |
InvalidArrayOffset | 0 | 5 | 0 |
UninitializedProperty | 0 | 1 | 0 |
PossiblyUnusedMethod | 0 | 1 | 0 |
PossiblyInvalidOperand | 2 | 0 | 0 |
UndefinedClass | 0 | 5 | 1 |
TypeDoesNotContainType | 2 | 0 | 0 |
PossiblyNullReference | 2 | 0 | 0 |
ArgumentTypeCoercion | 0 | 5 | 0 |
PossiblyInvalidCast | 1 | 1 | 0 |
InvalidFunctionCall | 0 | 1 | 0 |
RedundantCondition | 2 | 0 | 1 |
PossiblyNullArgument | 1 | 0 | 0 |
UndefinedThisPropertyAssignment | 1 | 0 | 0 |
UndefinedThisPropertyFetch | 3 | 0 | 0 |
18 | 396 | 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 array{report: bool|non-empty-mixed, ...<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 | |
error | Possibly undefined array key $cliOptions[$option] on array{analyzedDirs?: mixed, buildDir?: mixed, execution?: mixed, ignoredDirs?: mixed, ignoredFiles?: mixed, output?: mixed, report?: mixed, tools?: mixed, verbose?: mixed, ...<array-key, mixed>} PossiblyUndefinedArrayOffset | 117 | 117 | |
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 MissingPropertyType | 9 | 9 | |
info | Property Edge\QA\Config::$cwd does not have a declared type - consider false|non-empty-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 | mixed is a reserved word ReservedWord | 33 | 33 | |
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 | Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. RiskyTruthyFalsyComparison | 80 | 80 | |
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 | Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. RiskyTruthyFalsyComparison | 96 | 96 | |
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<0, max>, 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 array<array-key, string>|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 | Operand of type false|mixed contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. RiskyTruthyFalsyComparison | 48 | 48 | |
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 | |
error | Argument 2 of explode expects string, but possibly different type array<array-key, string>|mixed|string provided PossiblyInvalidArgument | 72 | 72 | |
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<0, max> PossiblyFalseOperand | 107 | 107 | |
info | Right operand cannot be falsable, got false|int<0, max> 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 | 9 | 9 | |
info | Property Edge\QA\RunningTool::$internalClasses does not have a declared type - consider array MissingPropertyType | 10 | 10 | |
info | Property Edge\QA\RunningTool::$internalDependencies does not have a declared type - consider array MissingPropertyType | 11 | 11 | |
info | Property Edge\QA\RunningTool::$optionSeparator does not have a declared type - consider mixed MissingPropertyType | 12 | 12 | |
info | Property Edge\QA\RunningTool::$outputMode does not have a declared type - consider mixed MissingPropertyType | 13 | 13 | |
info | Property Edge\QA\RunningTool::$xmlFiles does not have a declared type - consider mixed MissingPropertyType | 15 | 15 | |
info | Property Edge\QA\RunningTool::$errorsXPath does not have a declared type - consider array MissingPropertyType | 16 | 16 | |
info | Property Edge\QA\RunningTool::$errorsType does not have a declared type MissingPropertyType | 17 | 17 | |
info | Property Edge\QA\RunningTool::$allowedErrorsCount does not have a declared type - consider mixed MissingPropertyType | 18 | 18 | |
info | Property Edge\QA\RunningTool::$htmlReport does not have a declared type MissingPropertyType | 20 | 20 | |
info | Property Edge\QA\RunningTool::$userReports does not have a declared type - consider array MissingPropertyType | 21 | 21 | |
info | Property Edge\QA\RunningTool::$isExecutable does not have a declared type MissingPropertyType | 22 | 22 | |
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 | 24 | 24 | |
info | Parameter $tool has no provided type MissingParamType | 26 | 26 | |
info | Cannot create offset of type mixed|null, expecting array-key InvalidArrayOffset | 43 | 43 | |
info | Cannot use uninitialized property $this->errorsXPath UninitializedProperty | 43 | 43 | |
info | Method Edge\QA\RunningTool::isInstalled does not have a return type, expecting bool MissingReturnType | 48 | 48 | |
info | Method Edge\QA\RunningTool::isAtLeastOneClassInstalled does not have a return type, expecting bool MissingReturnType | 54 | 54 | |
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::hasOutput does not have a return type, expecting bool MissingReturnType | 67 | 67 | |
info | Parameter $outputMode has no provided type MissingParamType | 67 | 67 | |
info | Method Edge\QA\RunningTool::buildOption does not have a return type, expecting non-empty-string MissingReturnType | 75 | 75 | |
info | Parameter $arg has no provided type MissingParamType | 75 | 75 | |
info | Parameter $value has no provided type MissingParamType | 75 | 75 | |
info | Method Edge\QA\RunningTool::getAllowedErrorsCount does not have a return type MissingReturnType | 84 | 84 | |
info | Method Edge\QA\RunningTool::analyzeResult does not have a return type MissingReturnType | 89 | 89 | |
info | Parameter $hasNoOutput has no provided type MissingParamType | 89 | 89 | |
info | Operand of type int|null contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. RiskyTruthyFalsyComparison | 97 | 97 | |
info | Method Edge\QA\RunningTool::evaluteErrorsCount does not have a return type, expecting list{bool, mixed} MissingReturnType | 111 | 111 | |
info | Parameter $errorsCount has no provided type MissingParamType | 111 | 111 | |
info | Method Edge\QA\RunningTool::areErrorsIgnored does not have a return type, expecting bool MissingReturnType | 117 | 117 | |
info | Method Edge\QA\RunningTool::getXmlFiles does not have a return type MissingReturnType | 122 | 122 | |
info | Cannot find explicit calls to method Edge\QA\RunningTool::getXmlFiles (but did find some potential callers) PossiblyUnusedMethod | 122 | 122 | |
info | Method Edge\QA\RunningTool::getEscapedXmlFile does not have a return type MissingReturnType | 127 | 127 | |
info | Method Edge\QA\RunningTool::getMainXml does not have a return type MissingReturnType | 132 | 132 | |
info | Method Edge\QA\RunningTool::getHtmlRootReports does not have a return type, expecting list{0?: array{file: mixed, id: non-empty-string, name: mixed}, ...<array{file: mixed, id: non-empty-string, name: mixed}>} MissingReturnType | 137 | 137 | |
error | Cannot concatenate with a array<array-key, string>|string PossiblyInvalidOperand | 142 | 142 | |
src/Task/AssetsLoader.php | ||||
info | Class, interface or enum named Symfony\Component\Console\Helper\ProgressBar does not exist UndefinedClass | 22 | 22 | |
info | Class, interface or enum named Symfony\Component\Console\Helper\ProgressBar does not exist UndefinedClass | 23 | 23 | |
info | Class, interface or enum named Symfony\Component\Console\Helper\ProgressBar does not exist UndefinedClass | 29 | 29 | |
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 | Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. RiskyTruthyFalsyComparison | 42 | 42 | |
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 | |
error | Cannot concatenate with a array<array-key, string>|string PossiblyInvalidOperand | 37 | 37 | |
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 | mixed is a reserved word ReservedWord | 33 | 33 | |
info | Method Edge\QA\Tools\Analyzer\Phpstan::getErrorFormatOption does not have a return type, expecting 'error-format'|'errorFormat' MissingReturnType | 63 | 63 | |
info | Method Edge\QA\Tools\Analyzer\Phpstan::buildConfig does not have a return type MissingReturnType | 68 | 68 | |
info | Parameter $existingConfig has no provided type MissingParamType | 68 | 68 | |
info | Parameter $autoloadDirectories has no provided type MissingParamType | 68 | 68 | |
info | Parameter $ignoredPaths has no provided type MissingParamType | 68 | 68 | |
info | Cannot access value on variable $config['parameters'] using offset value of 'excludes_analyse', expecting 'autoload_directories' or 'excludePaths' InvalidArrayOffset | 95 | 95 | |
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 list{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 | |
error | Cannot resolve types for $xml->projectFiles with type SimpleXMLElement and !isset assertion TypeDoesNotContainType | 58 | 58 | |
error | Cannot resolve types for $xml->projectFiles->ignoreFiles with type SimpleXMLElement and !isset assertion TypeDoesNotContainType | 61 | 61 | |
error | Cannot call method addAttribute on possibly null value PossiblyNullReference | 68 | 68 | |
error | Cannot call method addAttribute on possibly null value PossiblyNullReference | 75 | 75 | |
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, but 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, but 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 array<array-key, string>|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 | |
error | array<array-key, string> cannot be cast to string PossiblyInvalidCast | 178 | 178 | |
error | Argument 1 of version_compare expects string, but possibly different type array<array-key, string>|string provided PossiblyInvalidArgument | 178 | 178 | |
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 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, but 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 list{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 truthy RedundantCondition | 1 | 1 | |
error | Operand of type true is always truthy 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 | Const COMPOSER_BINARY_DIR is not defined UndefinedConstant | 8 | 8 | |
info | Method Edge\QA\buildSafeBinary does not have a return type MissingReturnType | 11 | 11 | |
info | Parameter $unsafeBinary has no provided type MissingParamType | 11 | 11 | |
info | Method Edge\QA\escapePath does not have a return type, expecting non-empty-string MissingReturnType | 22 | 22 | |
info | Parameter $path has no provided type MissingParamType | 22 | 22 | |
info | Method Edge\QA\commonPath does not have a return type, expecting null|string MissingReturnType | 27 | 27 | |
info | Argument 1 of array_slice expects array<array-key, mixed>, but possibly different type non-empty-list<string>|string provided PossiblyInvalidArgument | 48 | 48 | |
info | non-empty-list<string> cannot be cast to string PossiblyInvalidCast | 53 | 53 | |
info | Argument 1 of dirname expects string, but possibly different type non-empty-list<string>|string provided PossiblyInvalidArgument | 53 | 53 | |
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 list{int<0, max>, string} MissingReturnType | 54 | 54 | |
info | Parameter $xmlFile has no provided type MissingParamType | 54 | 54 | |
error | Argument 1 of count cannot be null, possibly null value provided PossiblyNullArgument | 61 | 61 | |
info | Method Edge\QA\convertPhpErrorsToExceptions does not have a return type, expecting void MissingReturnType | 69 | 69 | |
error | Argument 1 of set_error_handler expects callable(int, string, string=, int=, array<array-key, mixed>=):bool|null, but possibly different type impure-callable(mixed, mixed, mixed, mixed) provided PossiblyInvalidArgument | 73 | 73 | |
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::$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 | 46 | 46 | |
info | Method Edge\QA\ConfigTest::testOverrideDefaultConfig does not have a return type, expecting void MissingReturnType | 52 | 52 | |
info | Method Edge\QA\ConfigTest::testAllowPartialUpdateOfTools does not have a return type, expecting void MissingReturnType | 62 | 62 | |
info | Method Edge\QA\ConfigTest::testIgnoreNonExistentUserConfig does not have a return type, expecting void MissingReturnType | 72 | 72 | |
info | Method Edge\QA\ConfigTest::testNoExceptionWhenCwdHasNoConfig does not have a return type, expecting void MissingReturnType | 80 | 80 | |
info | Method Edge\QA\ConfigTest::testThrowExceptionWhenFileDoesNotExist does not have a return type, expecting void MissingReturnType | 87 | 87 | |
info | Method Edge\QA\ConfigTest::testConfigCsvString does not have a return type, expecting void MissingReturnType | 95 | 95 | |
info | Method Edge\QA\ConfigTest::testUseCwdIfNoDirectoryIsSpecified does not have a return type, expecting void MissingReturnType | 103 | 103 | |
info | Method Edge\QA\ConfigTest::testIgnoreInvalidBinaryDoesNotExist does not have a return type, expecting void MissingReturnType | 109 | 109 | |
info | Method Edge\QA\ConfigTest::testToolAndBinaryNameMightNotMatch does not have a return type, expecting void MissingReturnType | 116 | 116 | |
info | Method Edge\QA\ConfigTest::testMultipleConfig does not have a return type, expecting void MissingReturnType | 123 | 123 | |
info | Method Edge\QA\ConfigTest::testAutodetectConfigInCurrentDirectory does not have a return type, expecting void MissingReturnType | 134 | 134 | |
info | Method Edge\QA\ConfigTest::testIgnoreAutodetectedConfigIfUserConfigIsSpecified does not have a return type, expecting void MissingReturnType | 141 | 141 | |
info | Method Edge\QA\ConfigTest::shouldStopPhpqa does not have a return type, expecting void MissingReturnType | 149 | 149 | |
info | void is a reserved word ReservedWord | 154 | 154 | |
info | Argument 1 of Edge\QA\ConfigTest::expectException expects class-string<Throwable>, but parent type 'Exception' provided ArgumentTypeCoercion | 154 | 154 | |
tests/GetVersionsTest.php | ||||
info | Class Edge\QA\Tools\GetVersionsTest is never used UnusedClass | 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': list{'2.7.4', '2.7.4'}, 'major release': list{'2.0.0', '2.0'}, 'minor release': list{'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': list{'irrelevant v1.10', '1.10'}, 'dev version': list{'irrelevant 4.x-dev@', '4.x'}, 'no space': list{'v1.13.7irrelevant', '1.13.7'}, 'no version': list{'irrelevant text', 'irrelevant text'}, 'prefer semver (dev + semver)': list{'4.x-dev@ v1.13.7', '1.13.7'}, 'prefer semver (semver + dev)': list{'v1.13.7 4.x-dev@', '1.13.7'}, 'semver at 2nd line': list{'first\nirrele 4.8.36 vant\nsecond', '4.8.36'}, 'semver at the end': list{'irrelevant 0.12.86', '0.12.86'}, 'semver at the start': list{'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': list{'4.x', '>=', '4', true}, 'is greater than dev version': list{'4', '>=', '4.x', true}, 'is lower?': list{'7', '<', '6', false}, 'no version': list{'', '>', '1', false}, 'semver is greater than': list{'4.1', '>=', '4', true}} MissingReturnType | 49 | 49 | |
tests/IgnoredPathsTest.php | ||||
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': list{'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': list{'phpmd', array{both: ' --exclude app\\config\\*,vendor\\*,autoload.php,RoboFile.php', dirs: ' --exclude app\\config\\*,vendor\\*', files: ' --exclude autoload.php,RoboFile.php'}, 'WIN32'}, 0: list{'phpcs', array{both: ' --ignore=*/app/config/*,*/vendor/*,autoload.php,RoboFile.php', dirs: ' --ignore=*/app/config/*,*/vendor/*', files: ' --ignore=autoload.php,RoboFile.php'}}, 1: list{'pdepend', array{both: ' --ignore=/app/config/,/vendor/,/autoload.php,/RoboFile.php', dirs: ' --ignore=/app/config/,/vendor/', files: ' --ignore=/autoload.php,/RoboFile.php'}}, 2: list{'phpmd', array{both: ' --exclude /app/config/,/vendor/,/autoload.php,/RoboFile.php', dirs: ' --exclude /app/config/,/vendor/', files: ' --exclude /autoload.php,/RoboFile.php'}}, 3: list{'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: list{'phpmetrics2', array{both: ' --exclude=\"app/config,vendor,autoload.php,RoboFile.php\"', dirs: ' --exclude=\"app/config,vendor\"', files: ' --exclude=\"autoload.php,RoboFile.php\"'}}, 5: list{'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: list{'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: list{'psalm', array{both: array{directory: list{'app/config', 'vendor'}, file: list{'autoload.php', 'RoboFile.php'}}, dirs: array{directory: list{'app/config', 'vendor'}, file: array<never, never>}, files: array{directory: array<never, never>, file: list{'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::$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': list{array{internalClass: list{'UnknownTool\\UnknownClass', Edge\QA\OptionsTest::class}}, true}, 'dependency is available': list{array{internalClass: Edge\QA\OptionsTest::class, internalDependencies: array{package: Edge\QA\OptionsTest::class}}, true}, 'dependency is not available': list{array{internalClass: Edge\QA\OptionsTest::class, internalDependencies: array{package: 'UnknownTool\\UnknownClass'}}, false}, 'internal class is available': list{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': list{array{output: 'cli', report: true, verbose: false}, false, true, false}, 'respect verbose mode and report in FILE output': list{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': list{array{execution: 'single'}, false}, 'parallel execution is default mode': list{array<never, never>, true}, 'parallel execution': list{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': list{'src', non-empty-string}, 'file directory + skip invalid dir': list{'./non-existent-directory,phpqa', non-empty-string}, 'find common root from multiple dirs': list{'src,tests', non-empty-string}, 'no path when dir is invalid': list{'./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 | 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 | 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': list{'invalid.xml', mixed}, 'create html': list{'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 | 8 | 8 | |
info | Property Edge\QA\RunningToolTest::$errorsCountInXmlFile does not have a declared type - consider int MissingPropertyType | 10 | 10 | |
info | Method Edge\QA\RunningToolTest::testBuildOptionWithDefinedSeparator does not have a return type, expecting void MissingReturnType | 12 | 12 | |
info | Method Edge\QA\RunningToolTest::testMarkSuccessWhenXPathIsNotDefined does not have a return type, expecting void MissingReturnType | 20 | 20 | |
info | Method Edge\QA\RunningToolTest::testMarkFailureWhenXmlFileDoesNotExist does not have a return type, expecting void MissingReturnType | 27 | 27 | |
info | Parameter $allowedErrors has no provided type MissingParamType | 27 | 27 | |
info | Parameter $expectedIsOk has no provided type MissingParamType | 27 | 27 | |
info | Method Edge\QA\RunningToolTest::provideAllowedErrorsForNonexistentFile does not have a return type, expecting array{'success when allowed errors are not defined': list{null, true}, 'success when errors count are defined': list{mixed, false}} MissingReturnType | 39 | 39 | |
info | Method Edge\QA\RunningToolTest::testCompareAllowedCountWithErrorsCountFromXml does not have a return type, expecting void MissingReturnType | 48 | 48 | |
info | Parameter $allowedErrors has no provided type MissingParamType | 48 | 48 | |
info | Parameter $isOk has no provided type MissingParamType | 48 | 48 | |
info | Method Edge\QA\RunningToolTest::provideAllowedErrors does not have a return type, expecting array{'failure when errors count > allowed count': list{mixed, false}, 'success when allowed errors are not defined': list{null, true}, 'success when errors count <= allowed count': list{mixed, true}} MissingReturnType | 58 | 58 | |
info | Method Edge\QA\RunningToolTest::testRuntimeSelectionOfErrorXpath does not have a return type, expecting void MissingReturnType | 67 | 67 | |
info | Cannot create offset of type bool, expecting array-key InvalidArrayOffset | 71 | 74 | |
info | Method Edge\QA\RunningToolTest::testMultipleXpaths does not have a return type, expecting void MissingReturnType | 82 | 82 | |
info | Method Edge\QA\RunningToolTest::provideMultipleXpaths does not have a return type, expecting array{'invalid xpath': list{list{null}, list{false, 'SimpleXMLElement::xpath(): Invalid expression'}}, 'multiple elements': list{list{'//errors/error', '//errors/warning'}, list{true, 3}}} MissingReturnType | 94 | 94 | |
info | Method Edge\QA\RunningToolTest::testAnalyzeExitCodeInCliMode does not have a return type, expecting void MissingReturnType | 103 | 103 | |
info | Parameter $allowedErrors has no provided type MissingParamType | 103 | 103 | |
info | Parameter $exitCode has no provided type MissingParamType | 103 | 103 | |
info | Class, interface or enum named Prophecy\Prophecy\ObjectProphecy does not exist UndefinedClass | 111 | 111 | |
info | The method PHPUnit\Framework\TestCase::prophesize has been marked as deprecated DeprecatedMethod | 111 | 111 | |
info | Argument 1 of Edge\QA\RunningToolTest::prophesize expects class-string|null, but parent type 'Symfony\\Component\\Process\\Process' provided ArgumentTypeCoercion | 111 | 111 | |
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': list{0, 2, list{false, 1}}, 'success when exit code <= allowed code': list{1, 1, list{true, 1}}, 'success when exit code = 0': list{0, 0, list{true, 0}}} MissingReturnType | 117 | 117 | |
info | Method Edge\QA\RunningToolTest::testCreateUniqueIdForUserReport does not have a return type, expecting void MissingReturnType | 126 | 126 | |
info | Property Edge\QA\RunningTool::$userReports does not have a declared type MissingPropertyType | 129 | 129 | |
info | Method Edge\QA\RunningToolTest::testDynamicOutputModePhpstan does not have a return type, expecting void MissingReturnType | 134 | 134 | |
tests/Tools/Analyzer/PhpstanTest.php | ||||
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 list{string} MissingPropertyType | 10 | 10 | |
info | Property Edge\QA\Tools\Analyzer\PhpstanTest::$ignoredPaths does not have a declared type - consider list{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: list{'File.php'}, reportUnmatchedIgnoredErrors: false}}, expectedConfig: array{parameters: array{excludes_analyse: list{'File.php', 'Test.php'}, reportUnmatchedIgnoredErrors: false}}}, 'No config': array{existingConfig: array<never, never>, 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: list{'File.php'}}}}, expectedConfig: array{parameters: array{excludePaths: array{analyseAndScan: list{'File.php', 'Test.php'}}}}}, 'excludePaths shortcut': array{existingConfig: array{parameters: array{excludePaths: list{'File.php'}}}, expectedConfig: array{parameters: array{excludePaths: list{'File.php', 'Test.php'}}}}} MissingReturnType | 20 | 20 |