mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(db): Deprecate getState() as per upstream
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
829f2b9bc7
commit
e45465781f
2 changed files with 6 additions and 1 deletions
|
|
@ -145,9 +145,12 @@ class QueryBuilder implements IQueryBuilder {
|
|||
/**
|
||||
* Gets the state of this query builder instance.
|
||||
*
|
||||
* @return integer Either QueryBuilder::STATE_DIRTY or QueryBuilder::STATE_CLEAN.
|
||||
* @return int Always returns 0 which is former `QueryBuilder::STATE_DIRTY`
|
||||
* @deprecated 30.0.0 This function is going to be removed with the next Doctrine/DBAL update
|
||||
* and we can not fix this in our wrapper.
|
||||
*/
|
||||
public function getState() {
|
||||
$this->logger->debug(IQueryBuilder::class . '::' . __FUNCTION__ . ' is deprecated and will be removed soon.', ['exception' => new \Exception('Deprecated call to ' . __METHOD__)]);
|
||||
return $this->queryBuilder->getState();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -134,6 +134,8 @@ interface IQueryBuilder {
|
|||
*
|
||||
* @return integer Either QueryBuilder::STATE_DIRTY or QueryBuilder::STATE_CLEAN.
|
||||
* @since 8.2.0
|
||||
* @deprecated 30.0.0 This function is going to be removed with the next Doctrine/DBAL update
|
||||
* and we can not fix this in our wrapper.
|
||||
*/
|
||||
public function getState();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue