diff options
Diffstat (limited to 'src/Components/FunctionCall.php')
-rw-r--r-- | src/Components/FunctionCall.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/Components/FunctionCall.php b/src/Components/FunctionCall.php index 8334676..b41e6b2 100644 --- a/src/Components/FunctionCall.php +++ b/src/Components/FunctionCall.php @@ -1,8 +1,8 @@ <?php - /** * Parses a function call. */ +declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Components; @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a function call. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class FunctionCall extends Component { @@ -35,8 +31,6 @@ class FunctionCall extends Component public $parameters; /** - * Constructor. - * * @param string $name the name of the function to be called * @param array|ArrayObj $parameters the parameters of this function */ @@ -57,9 +51,9 @@ class FunctionCall extends Component * * @return FunctionCall */ - 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(); /** * The state of the parser. @@ -112,7 +106,7 @@ class FunctionCall extends Component * * @return string */ - public static function build($component, array $options = array()) + public static function build($component, array $options = []) { return $component->name . $component->parameters; } |