class UnusableSchemaDumpCollector implements Collector

Collects the unusable schema dumps of the connections whose models have undeclared properties read, so they are reported at the dumps themselves once the analysis has finished.

PHPStan analyzes a nullsafe property fetch as a property fetch, so both are collected.

Methods

__construct(ModelPropertyHelper $modelPropertyHelper)

Create a new collector instance.

string
getNodeType()

Get the node type the collector inspects.

array|null
processNode(Node $node, Scope $scope)

Collect the unusable schema dumps of the models whose attributes the fetch looks up.

Details

at line 29
__construct(ModelPropertyHelper $modelPropertyHelper)

Create a new collector instance.

Parameters

ModelPropertyHelper $modelPropertyHelper

at line 36
string getNodeType()

Get the node type the collector inspects.

Return Value

string

at line 48
array|null processNode(Node $node, Scope $scope)

Collect the unusable schema dumps of the models whose attributes the fetch looks up.

Parameters

Node $node
Scope $scope

Return Value

array|null