Skip to content

Commit 0405d40

Browse files
committed
Fixed Scrutinizer issue.
1 parent 3d3b03b commit 0405d40

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Components/IntoKeyword.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ public static function parse(Parser $parser, TokensList $list, array $options =
138138
*/
139139
public static function build($component)
140140
{
141-
if ($component->type === 'OUTFILE') {
142-
return 'OUTFILE "' . $component->dest . '"';
143-
} else {
141+
if ($component->dest instanceof Expression) {
144142
$columns = !empty($component->columns) ?
145143
'(' . implode(', ', $component->columns) . ')' : '';
146144
return Expression::build($component->dest) . $columns;
145+
} else {
146+
return 'OUTFILE "' . $component->dest . '"';
147147
}
148148
}
149149
}

src/Components/PartitionDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class PartitionDefinition extends Component
7171
/**
7272
* The expression used to defined this partition.
7373
*
74-
* @var Expression
74+
* @var Expression|string
7575
*/
7676
public $expr;
7777

0 commit comments

Comments
 (0)