-
Notifications
You must be signed in to change notification settings - Fork 4
PHPLIB-1348 Add tests on Custom Aggregation Expression Operators #35
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,8 @@ private function addMethod(GeneratorDefinition $definition, OperatorDefinition $ | |
} else { | ||
if ($argument->optional) { | ||
$parameter->setDefaultValue(new Literal('Optional::Undefined')); | ||
} elseif ($argument->default !== null) { | ||
$parameter->setDefaultValue($argument->default); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this the first time this logic is required? The default value in the schema was previously There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a bug. The default value was set on the operator class contructor, but not on the factory method. There is duplicated code between both generators. |
||
} | ||
|
||
$method->addComment('@param ' . $type->doc . ' $' . $argument->name . rtrim(' ' . $argument->description)); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted that this has no impact on
tests/Builder/Accumulator/Pipelines.php
apart from whitespace changes. Likewise forquery/where.yaml
.