StaticAnalysisFindings
Attribute a complete PHPStan report; identify findings separately from proposed bytes.
StaticAnalysisFindings::fromJson()
public static function fromJson(string $json, string $subject, string $root): ?arrayRead only rule findings belonging to the one analyzed subject, without global errors.
Parameters
| Name | Type | Description |
|---|---|---|
| $json | string | |
| $subject | string | |
| $root | string |
StaticAnalysisFindings::fingerprint()
public static function fingerprint(?mixed $findings): ?stringIdentify the set of messages and identifiers, ignoring location, ordering and multiplicity. This is observed information equality, not semantic equivalence or a usefulness judgment.
Parameters
| Name | Type | Description |
|---|---|---|
| $findings | ?mixed |