summaryrefslogtreecommitdiffstats
path: root/src/Components
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2019-12-31 21:13:48 +0100
committerWilliam Desportes <williamdes@wdes.fr>2019-12-31 21:22:17 +0100
commit3129c88d83b5978f1dbc1742420f46728d19b730 (patch)
treede198a522805284dd3307121bfa5d5028abfb3bb /src/Components
parent365f75845cc0ea38e03dc7ebfe54cf1405242299 (diff)
downloadsql-parser-3129c88d83b5978f1dbc1742420f46728d19b730.zip
sql-parser-3129c88d83b5978f1dbc1742420f46728d19b730.tar.gz
sql-parser-3129c88d83b5978f1dbc1742420f46728d19b730.tar.bz2
Fix phpdoc using phpstan level 3
Signed-off-by: William Desportes <williamdes@wdes.fr>
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 0d8dea3..d19d434 100644
--- a/src/Components/DataType.php
+++ b/src/Components/DataType.php
@@ -94,7 +94,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 = array())
{
diff --git a/src/Components/Expression.php b/src/Components/Expression.php
index 67767dc..2cf119b 100644
--- a/src/Components/Expression.php
+++ b/src/Components/Expression.php
@@ -153,7 +153,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 = array())
{
diff --git a/src/Components/IntoKeyword.php b/src/Components/IntoKeyword.php
index a31f6a0..dea5d9d 100644
--- a/src/Components/IntoKeyword.php
+++ b/src/Components/IntoKeyword.php
@@ -118,7 +118,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 2de5126..6867615 100644
--- a/src/Components/UnionKeyword.php
+++ b/src/Components/UnionKeyword.php
@@ -18,8 +18,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
*/