Skip to content

Commit 6ee7e43

Browse files
committed
chore: resolve psalm issues
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 44c1fc5 commit 6ee7e43

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

build/psalm-baseline.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4101,12 +4101,6 @@
41014101
<TypeDoesNotContainType>
41024102
<code><![CDATA[ctype_digit($this->dbPort)]]></code>
41034103
</TypeDoesNotContainType>
4104-
<UndefinedThisPropertyFetch>
4105-
<code><![CDATA[$this->dbprettyname]]></code>
4106-
<code><![CDATA[$this->dbprettyname]]></code>
4107-
<code><![CDATA[$this->dbprettyname]]></code>
4108-
<code><![CDATA[$this->dbprettyname]]></code>
4109-
</UndefinedThisPropertyFetch>
41104104
</file>
41114105
<file src="lib/private/Share20/DefaultShareProvider.php">
41124106
<FalsableReturnStatement>

lib/private/Setup/AbstractDatabase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ abstract class AbstractDatabase {
2525
*/
2626
protected const array CONNECTION_ENCRYPTION_OPTIONS = ['dbdriveroptions'];
2727

28+
protected string $dbprettyname = 'abstract';
29+
2830
protected string $dbUser;
2931
protected string $dbPassword;
3032
protected string $dbName;

lib/private/Setup/OCI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use OC\DatabaseSetupException;
1212

1313
class OCI extends AbstractDatabase {
14-
public $dbprettyname = 'Oracle';
14+
public string $dbprettyname = 'Oracle';
1515

1616
protected $dbtablespace;
1717

lib/private/Setup/PostgreSQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use OC\DB\QueryBuilder\Literal;
1515

1616
class PostgreSQL extends AbstractDatabase {
17-
public $dbprettyname = 'PostgreSQL';
17+
public string $dbprettyname = 'PostgreSQL';
1818

1919
// #[\Override] TODO: Uncomment this when we only support PHP 8.5+ support
2020
protected const array CONNECTION_ENCRYPTION_OPTIONS = [...parent::CONNECTION_ENCRYPTION_OPTIONS, 'pgsql_ssl'];

0 commit comments

Comments
 (0)