Skip to content

Commit

Permalink
Merge pull request #11 from elliot-sawyer/upgrade/ss5
Browse files Browse the repository at this point in the history
Silverstripe 5 support
  • Loading branch information
wilr authored Aug 18, 2023
2 parents 3d828e5 + dcac22c commit ee11995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"query"
],
"require": {
"silverstripe/framework": "^4.0"
"silverstripe/framework": "^4.0 | ^5.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/SQLQueryList.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function reverse()
}

//Limitable
public function limit($limit, $offset = 0)
public function limit(?int $limit, int $offset = 0): Limitable
{
$this->query->setLimit($limit, $offset);

Expand Down

0 comments on commit ee11995

Please sign in to comment.