File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828use Framework \Log \Logger ;
2929use Framework \Log \LogLevel ;
3030use InvalidArgumentException ;
31+ use JetBrains \PhpStorm \ArrayShape ;
3132use JetBrains \PhpStorm \Language ;
3233use LogicException ;
3334use mysqli ;
@@ -289,6 +290,22 @@ public function reconnect() : static
289290 /**
290291 * @return array<string,mixed>
291292 */
293+ #[ArrayShape([
294+ 'host ' => 'string ' ,
295+ 'port ' => 'int ' ,
296+ 'username ' => 'string|null ' ,
297+ 'password ' => 'string|null ' ,
298+ 'schema ' => 'string|null ' ,
299+ 'socket ' => 'string|null ' ,
300+ 'engine ' => 'string ' ,
301+ 'charset ' => 'string ' ,
302+ 'collation ' => 'string ' ,
303+ 'timezone ' => 'string ' ,
304+ 'ssl ' => 'array ' ,
305+ 'failover ' => 'array ' ,
306+ 'options ' => 'array ' ,
307+ 'report ' => 'int ' ,
308+ ])]
292309 public function getConfig () : array
293310 {
294311 return $ this ->config ;
You can’t perform that action at this time.
0 commit comments