Comparison #0005
Source Document
<?php
#ï¸â£this is my class
class ð©ð©ð©ð©
{
#ï¸â£this is myð© method
function ð©ð©ð©($ð, $ð¯)
{
return $ð + $ð¯;
}
}
$ð = 3;
$ð¥ = $ð + 2;
$ð© = new ð©ð©ð©ð©;
echo $ð© -> ð©ð©ð©($ð, $ð¥);
Analyses
phpstan-strict
Line | Column | Details |
---|---|---|
7 | 1 |
[error] missingType.return Method 💩💩💩💩::💩💩💩() has no return type specified. |
7 | 1 |
[error] missingType.parameter Method 💩💩💩💩::💩💩💩() has parameter $🐯 with no type specified. |
7 | 1 |
[error] missingType.parameter Method 💩💩💩💩::💩💩💩() has parameter $😎 with no type specified. |
psalm-strict
Line | Column | Details |
---|---|---|
4 | 7 |
[error] n/a ClassMustBeFinal: Class 💩💩💩💩 is never extended and is not part of the public API, and thus must be made final. |
7 | 11 |
[error] n/a MissingReturnType: Method 💩💩💩💩::💩💩💩 does not have a return type |
7 | 24 |
[error] n/a MissingParamType: Parameter $😎 has no provided type |
7 | 31 |
[error] n/a MissingParamType: Parameter $🐯 has no provided type |
9 | 10 |
[error] n/a MixedOperand: Left operand cannot be mixed |
16 | 6 |
[error] n/a MixedArgument: Argument 1 of echo cannot be mixed, expecting string |
Line | Column | Details |