Skip to content

Commit 6a5db93

Browse files
committed
Fix deprecation warning on CakePHP 5.3
Closes #49
1 parent ef063c8 commit 6a5db93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)