summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIsaac Bennetch <bennetch@gmail.com>2019-05-05 11:20:04 -0400
committerGitHub <noreply@github.com>2019-05-05 11:20:04 -0400
commita7c5771e608f2e0204f7896d8661b84ec78414bb (patch)
tree80a6ced009c915aa7791dfe3dab9da50d6949542 /src
parenta60822c353d0ceb63053be167d5cd503f035ca48 (diff)
parentb47e27b8724cb2639cccec9430076ef8a68c869c (diff)
downloadsql-parser-a7c5771e608f2e0204f7896d8661b84ec78414bb.zip
sql-parser-a7c5771e608f2e0204f7896d8661b84ec78414bb.tar.gz
sql-parser-a7c5771e608f2e0204f7896d8661b84ec78414bb.tar.bz2
Merge pull request #241 from LeSuisse/php-warning-incomplete-case-expression
Fix PHP warnings when building an incomplete CASE expression
Diffstat (limited to 'src')
-rw-r--r--src/Components/CaseExpression.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Components/CaseExpression.php b/src/Components/CaseExpression.php
index a79b52e..309f0ff 100644
--- a/src/Components/CaseExpression.php
+++ b/src/Components/CaseExpression.php
@@ -33,21 +33,21 @@ class CaseExpression extends Component
*
* @var array
*/
- public $conditions;
+ public $conditions = [];
/**
* The results matching with the WHEN clauses.
*
* @var array
*/
- public $results;
+ public $results = [];
/**
* The values to be compared against.
*
* @var array
*/
- public $compare_values;
+ public $compare_values = [];
/**
* The result in ELSE section of expr.