-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): Deprecate functionality deprecated by doctrine and test on more oracle versions #46605
Conversation
@@ -230,18 +230,10 @@ | |||
return $this->inner; | |||
} | |||
|
|||
/** | |||
* @return self::PLATFORM_MYSQL|self::PLATFORM_ORACLE|self::PLATFORM_POSTGRES|self::PLATFORM_SQLITE |
Check failure
Code scanning / Psalm
MoreSpecificReturnType Error
} else { | ||
throw new \Exception('Database ' . $platform::class . ' not supported'); | ||
} | ||
return $this->inner->getDatabaseProvider(); |
Check failure
Code scanning / Psalm
LessSpecificReturnStatement Error
$this->connection = $connection; | ||
$this->logger = $logger; |
Check failure
Code scanning / Psalm
InvalidPropertyAssignmentValue Error
@@ -63,6 +62,9 @@ | |||
* @return \OCP\DB\QueryBuilder\ICompositeExpression | |||
*/ | |||
public function andX(...$x): ICompositeExpression { | |||
if (empty($x)) { | |||
$this->logger->debug('Calling ' . IQueryBuilder::class . '::' . __FUNCTION__ . ' without parameters is deprecated and will throw soon.', ['exception' => new \Exception('No parameters in call to ' . __METHOD__)]); |
Check failure
Code scanning / Psalm
UndefinedMethod Error
@@ -81,6 +83,9 @@ | |||
* @return \OCP\DB\QueryBuilder\ICompositeExpression | |||
*/ | |||
public function orX(...$x): ICompositeExpression { | |||
if (empty($x)) { | |||
$this->logger->debug('Calling ' . IQueryBuilder::class . '::' . __FUNCTION__ . ' without parameters is deprecated and will throw soon.', ['exception' => new \Exception('No parameters in call to ' . __METHOD__)]); |
Check failure
Code scanning / Psalm
UndefinedMethod Error
b11564f
to
796d641
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
…at will be removed with Doctrine/DBAL 4 Signed-off-by: Joas Schilling <coding@schilljs.com>
…s deprecated Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
…ction::PARAM_STR_ARRAY` Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
…e of removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
…::and()` without parameters Signed-off-by: Joas Schilling <coding@schilljs.com>
…d recursion Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
7d34c84
to
817ca00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for the carddav/caldav changes
* All apps and API code should not need this and instead use provided functionality from the above. | ||
*/ | ||
public function getServerVersion(): string { | ||
return $this->_conn->getServerVersion(); |
Check failure
Code scanning / Psalm
UndefinedInterfaceMethod Error
@@ -12,6 +12,9 @@ | |||
|
|||
class OCIFunctionBuilder extends FunctionBuilder { | |||
public function md5($input): IQueryFunction { | |||
if (version_compare($this->connection->getServerVersion(), '20', '>=')) { |
Check failure
Code scanning / Psalm
UndefinedInterfaceMethod Error
2ecf40f
to
b79d87c
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
b79d87c
to
b656edc
Compare
Summary
Checklist