Skip to content
docsv0.44.3

StaticAnalysisFindings

Attribute a complete PHPStan report; identify findings separately from proposed bytes.

StaticAnalysisFindings::fromJson()

public static function fromJson(string $json, string $subject, string $root): ?array

Read only rule findings belonging to the one analyzed subject, without global errors.

Parameters

Parameters of fromJson()
NameTypeDescription
$jsonstring
$subjectstring
$rootstring

StaticAnalysisFindings::fingerprint()

public static function fingerprint(?mixed $findings): ?string

Identify the set of messages and identifiers, ignoring location, ordering and multiplicity. This is observed information equality, not semantic equivalence or a usefulness judgment.

Parameters

Parameters of fingerprint()
NameTypeDescription
$findings?mixed