Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | protected function swapTestingDatabase(): void |
||
20 | { |
||
21 | $driver = config('database.default'); |
||
22 | $dbName = config("database.connections.$driver.database"); |
||
23 | |||
24 | // Paratest gives each process a unique TEST_TOKEN env variable. |
||
25 | // When that's not set, we can default to 1 because it's |
||
26 | // probably running on PHPUnit instead. |
||
27 | $TEST_TOKEN = env('TEST_TOKEN', 1); |
||
28 | config()->set("database.connections.$driver.database", "$dbName-$TEST_TOKEN"); |
||
29 | } |
||
30 | } |
||
31 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.