summaryrefslogtreecommitdiffstats
path: root/src/Components/Limit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components/Limit.php')
-rw-r--r--src/Components/Limit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Components/Limit.php b/src/Components/Limit.php
index 17423e2..e18219d 100644
--- a/src/Components/Limit.php
+++ b/src/Components/Limit.php
@@ -1,8 +1,8 @@
<?php
-
/**
* `LIMIT` keyword parser.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Components;
@@ -53,9 +53,9 @@ class Limit extends Component
*
* @return Limit
*/
- public static function parse(Parser $parser, TokensList $list, array $options = array())
+ public static function parse(Parser $parser, TokensList $list, array $options = [])
{
- $ret = new self();
+ $ret = new static();
$offset = false;
@@ -121,7 +121,7 @@ class Limit extends Component
*
* @return string
*/
- public static function build($component, array $options = array())
+ public static function build($component, array $options = [])
{
return $component->offset . ', ' . $component->rowCount;
}