diff options
| author | 2024-04-10 15:33:43 +0200 | |
|---|---|---|
| committer | 2024-04-10 15:33:43 +0200 | |
| commit | 350edf398c55b472e19a3017de9b4d2d3420b9e4 (patch) | |
| tree | 00672f4cba0830e4b39f778e3a36de6b961fc5bb /lib/Minz/PdoPgsql.php | |
| parent | 8280e3d88edb93211fcf2aec15a7b4c1ae4d3813 (diff) | |
PHP 8.3 #[\Override] (#6273)
* PHP 8.3 #[\Override]
https://php.watch/versions/8.3/override-attr
With PHPStan `checkMissingOverrideMethodAttribute` https://phpstan.org/config-reference#checkmissingoverridemethodattribute
And modified the call to phpstan-next on the model of https://github.com/FreshRSS/Extensions/pull/228 (more robust than the find method, which gave some strange errors)
* Update extension example accordingly
Diffstat (limited to 'lib/Minz/PdoPgsql.php')
| -rw-r--r-- | lib/Minz/PdoPgsql.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Minz/PdoPgsql.php b/lib/Minz/PdoPgsql.php index f60dd695f..d075c396f 100644 --- a/lib/Minz/PdoPgsql.php +++ b/lib/Minz/PdoPgsql.php @@ -16,10 +16,12 @@ class Minz_PdoPgsql extends Minz_Pdo { $this->exec("SET NAMES 'UTF8';"); } + #[\Override] public function dbType(): string { return 'pgsql'; } + #[\Override] protected function preSql(string $statement): string { $statement = parent::preSql($statement); return str_replace(array('`', ' LIKE '), array('"', ' ILIKE '), $statement); |
