Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function ensureThatICanCreateTariffPlan(Manager $I): void |
||
24 | { |
||
25 | $this->fields = [ |
||
26 | 'name' => uniqid(), |
||
27 | 'type' => 'Certificate tariff', |
||
28 | 'client' => '[email protected]', |
||
29 | 'currency' => 'USD', |
||
30 | 'note' => 'test note', |
||
31 | ]; |
||
32 | $page = new PlanCreatePage($I, $this->fields); |
||
33 | $this->id = $page->createPlan(); |
||
|
|||
34 | } |
||
35 | |||
51 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.