chore: resolve psalm issues

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/62958/head
Ferdinand Thiessen 1 week ago
parent 44c1fc5b46
commit 6ee7e433da
No known key found for this signature in database
GPG Key ID: 7E849AE05218500F
  1. 6
      build/psalm-baseline.xml
  2. 2
      lib/private/Setup/AbstractDatabase.php
  3. 2
      lib/private/Setup/OCI.php
  4. 2
      lib/private/Setup/PostgreSQL.php

@ -4101,12 +4101,6 @@
<TypeDoesNotContainType>
<code><![CDATA[ctype_digit($this->dbPort)]]></code>
</TypeDoesNotContainType>
<UndefinedThisPropertyFetch>
<code><![CDATA[$this->dbprettyname]]></code>
<code><![CDATA[$this->dbprettyname]]></code>
<code><![CDATA[$this->dbprettyname]]></code>
<code><![CDATA[$this->dbprettyname]]></code>
</UndefinedThisPropertyFetch>
</file>
<file src="lib/private/Share20/DefaultShareProvider.php">
<FalsableReturnStatement>

@ -25,6 +25,8 @@ abstract class AbstractDatabase {
*/
protected const array CONNECTION_ENCRYPTION_OPTIONS = ['dbdriveroptions'];
protected string $dbprettyname = 'abstract';
protected string $dbUser;
protected string $dbPassword;
protected string $dbName;

@ -11,7 +11,7 @@ namespace OC\Setup;
use OC\DatabaseSetupException;
class OCI extends AbstractDatabase {
public $dbprettyname = 'Oracle';
public string $dbprettyname = 'Oracle';
protected $dbtablespace;

@ -14,7 +14,7 @@ use OC\DB\Connection;
use OC\DB\QueryBuilder\Literal;
class PostgreSQL extends AbstractDatabase {
public $dbprettyname = 'PostgreSQL';
public string $dbprettyname = 'PostgreSQL';
// #[\Override] TODO: Uncomment this when we only support PHP 8.5+ support
protected const array CONNECTION_ENCRYPTION_OPTIONS = [...parent::CONNECTION_ENCRYPTION_OPTIONS, 'pgsql_ssl'];

Loading…
Cancel
Save