summaryrefslogtreecommitdiffstats
path: root/src/Components
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components')
-rw-r--r--src/Components/DataType.php2
-rw-r--r--src/Components/Expression.php2
-rw-r--r--src/Components/IntoKeyword.php2
-rw-r--r--src/Components/UnionKeyword.php4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Components/DataType.php b/src/Components/DataType.php
index 6ebfc94..484e559 100644
--- a/src/Components/DataType.php
+++ b/src/Components/DataType.php
@@ -88,7 +88,7 @@ class DataType extends Component
* @param TokensList $list the list of tokens that are being parsed
* @param array $options parameters for parsing
*
- * @return DataType
+ * @return DataType|null
*/
public static function parse(Parser $parser, TokensList $list, array $options = [])
{
diff --git a/src/Components/Expression.php b/src/Components/Expression.php
index 38de90a..bf97937 100644
--- a/src/Components/Expression.php
+++ b/src/Components/Expression.php
@@ -147,7 +147,7 @@ class Expression extends Component
* @param TokensList $list the list of tokens that are being parsed
* @param array $options parameters for parsing
*
- * @return Expression
+ * @return Expression|null
*/
public static function parse(Parser $parser, TokensList $list, array $options = [])
{
diff --git a/src/Components/IntoKeyword.php b/src/Components/IntoKeyword.php
index 81cddb8..c3f8a43 100644
--- a/src/Components/IntoKeyword.php
+++ b/src/Components/IntoKeyword.php
@@ -112,7 +112,7 @@ class IntoKeyword extends Component
* @param array $columns column list of destination
* @param array $values selected fields
* @param OptionsArray $fields_options options for FIELDS/COLUMNS keyword
- * @param OptionsArray $fields_keyword options for OPTINOS keyword
+ * @param bool $fields_keyword options for OPTIONS keyword
*/
public function __construct(
$type = null,
diff --git a/src/Components/UnionKeyword.php b/src/Components/UnionKeyword.php
index 3acc66b..55c9e29 100644
--- a/src/Components/UnionKeyword.php
+++ b/src/Components/UnionKeyword.php
@@ -14,8 +14,8 @@ use PhpMyAdmin\SqlParser\Component;
class UnionKeyword extends Component
{
/**
- * @param UnionKeyword[] $component the component to be built
- * @param array $options parameters for building
+ * @param array<UnionKeyword[]> $component the component to be built
+ * @param array $options parameters for building
*
* @return string
*/