UnusableSchemaDumpCollector
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
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.
at line 36
string
getNodeType()
Get the node type the collector inspects.
at line 48
array|null
processNode(Node $node, Scope $scope)
Collect the unusable schema dumps of the models whose attributes the fetch looks up.