1 | <?php |
||
9 | class MySql extends DbDumper |
||
10 | { |
||
11 | protected $dbName; |
||
12 | protected $userName; |
||
13 | protected $password; |
||
14 | protected $host = 'localhost'; |
||
15 | protected $port = 3306; |
||
16 | protected $socket; |
||
17 | protected $dumpBinaryPath = ''; |
||
18 | protected $useExtendedInserts = true; |
||
19 | |||
20 | public function setDbName(string $dbName) : MySql |
||
26 | |||
27 | public function setUserName(string $userName) : MySql |
||
33 | |||
34 | public function setPassword(string $password) : MySql |
||
40 | |||
41 | public function setHost(string $host) : MySql |
||
47 | |||
48 | public function setPort(int $port) : MySql |
||
54 | |||
55 | public function setSocket(int $socket) : MySql |
||
61 | |||
62 | public function setDumpBinaryPath(string $dumpBinaryPath) : MySql |
||
72 | |||
73 | public function useExtendedInserts() : MySql |
||
79 | |||
80 | public function dontUseExtendedInserts() : MySql |
||
86 | |||
87 | /** |
||
88 | * Dump the contents of the database to the given file. |
||
89 | */ |
||
90 | public function dumpToFile(string $dumpFile) |
||
106 | |||
107 | /** |
||
108 | * Get the command that should be performed to dump the database. |
||
109 | */ |
||
110 | public function getDumpCommand(string $dumpFile, string $temporaryCredentialsFile) : string |
||
127 | |||
128 | public function getContentsOfCredentialsFile() : string |
||
140 | |||
141 | protected function guardAgainstIncompleteCredentials() |
||
149 | } |
||
150 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: