1 | <?php |
||
23 | trait FormulaChargeModifierTrait |
||
24 | { |
||
25 | /** |
||
26 | * @var ChargeModifier|null |
||
27 | */ |
||
28 | protected $formula; |
||
29 | |||
30 | /** |
||
31 | * Calculate additional charges. |
||
32 | * |
||
33 | * @param ActionInterface $action |
||
34 | * @param ChargeInterface $charge |
||
35 | * @return ChargeInterface[] calculated charges |
||
36 | */ |
||
37 | public function modifyCharge(ChargeInterface $charge, ActionInterface $action): array |
||
41 | } |
||
42 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.