diff options
| author | 2022-01-07 10:05:09 +0100 | |
|---|---|---|
| committer | 2022-01-07 10:05:09 +0100 | |
| commit | ed19445f74c30854c60873cd1df1c38e15fc316b (patch) | |
| tree | 926496a8e1f4d71c8a9b2fd0f87e835037792491 /lib/Minz/PdoMysql.php | |
| parent | f8c5df28ab3f7e68460b74fed11f799c702435b7 (diff) | |
Optimise Minz_ModelPdo::class (#4119)
* - Fix typo,
- remove unnecessary null in property,
- remove unused property,
- add phpDoc,
- add ext PDO in composer.json,
- use strict comparison,
- indentation
* Translate
* Update lib/Minz/ModelPdo.php
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
* The code is more explicite
* Fix phpstan
* Fix phpstan expect one
* Fix phpstan
* Return in back...
* make fix-all
* Fix exception and more types
* Fix more types
* Remove ext- in composer.json
Co-authored-by: Luc SANCHEZ <l.sanchez-ext@ubitransport.com>
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'lib/Minz/PdoMysql.php')
| -rw-r--r-- | lib/Minz/PdoMysql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Minz/PdoMysql.php b/lib/Minz/PdoMysql.php index e5d62bcc5..b66cccf28 100644 --- a/lib/Minz/PdoMysql.php +++ b/lib/Minz/PdoMysql.php @@ -6,12 +6,12 @@ */ class Minz_PdoMysql extends Minz_Pdo { - public function __construct($dsn, $username = null, $passwd = null, $options = null) { + public function __construct(string $dsn, $username = null, $passwd = null, $options = null) { parent::__construct($dsn, $username, $passwd, $options); $this->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false); } - public function dbType() { + public function dbType(): string { return 'mysql'; } |
