PHP Static Analyzer Comparison

wip

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