Skip to content

Commit bb9e205

Browse files
committed
Fix deprecation warning on CakePHP 5.3
1 parent ef063c8 commit bb9e205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Behavior/SequenceBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ protected function _getUpdateExpression(string $direction = '+'): QueryExpressio
554554
{
555555
$field = $this->_config['sequenceField'];
556556

557-
return $this->_table->selectQuery()->newExpr()
557+
return $this->_table->selectQuery()->expr()
558558
->add(new IdentifierExpression($field))
559559
->add('1')
560560
->setConjunction($direction);

0 commit comments

Comments
 (0)