------ ----------------------------------------------------------------------------
Line Http/Controllers/Reports.php
------ ----------------------------------------------------------------------------
552 Relation 'meter' is not found in App\Models\Transaction\Transaction model.
552 Relation 'meter' is not found in App\Models\Transaction\Transaction model.
------ ----------------------------------------------------------------------------
or mis-use of Laravel objects
------ --------------------------------------------------------------------------------
Line Services/AgentBalanceHistoryService.php
------ --------------------------------------------------------------------------------
58 Called 'last' on Laravel collection, but could have been retrieved as a query.
72 Called 'avg' on Laravel collection, but could have been retrieved as a query.
79 Called 'avg' on Laravel collection, but could have been retrieved as a query.
------ --------------------------------------------------------------------------------
and should be fixed.
Definition of done:
The Github Action step composer run phpstan-analyze is enabled (i.e. continue-on-error: true is removed) and the check passes.
Scope:
Currently, running
returns a couple of errors.
Most of them are related to model changes
or mis-use of Laravel objects
and should be fixed.
Definition of done:
The Github Action step
composer run phpstan-analyze
is enabled (i.e.continue-on-error: true
is removed) and the check passes.