| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function __construct(string $hostname, string $user, string $password = null, string $database = null, string $platform = 'mysql', int $port = 3306) |
||
| 49 | { |
||
| 50 | $this->hostname = $hostname; |
||
| 51 | $this->user = $user; |
||
| 52 | $this->password = $password; |
||
| 53 | $this->database = $database; |
||
| 54 | $this->platform = $platform; |
||
| 55 | $this->port = $port; |
||
|
|
|||
| 56 | } |
||
| 57 | |||
| 106 |
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.