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/PdoPgsql.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/PdoPgsql.php')
| -rw-r--r-- | lib/Minz/PdoPgsql.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Minz/PdoPgsql.php b/lib/Minz/PdoPgsql.php index 7d1a1912b..cae0fe476 100644 --- a/lib/Minz/PdoPgsql.php +++ b/lib/Minz/PdoPgsql.php @@ -6,16 +6,16 @@ */ class Minz_PdoPgsql 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->exec("SET NAMES 'UTF8';"); } - public function dbType() { + public function dbType(): string { return 'pgsql'; } - protected function preSql($statement) { + protected function preSql(string $statement): string { $statement = parent::preSql($statement); return str_replace(array('`', ' LIKE '), array('"', ' ILIKE '), $statement); } |
