Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Nov 29, 2017
1 parent 641d9ff commit 09fce5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ExtensionDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public function buildExtensionCode(string $functionName) : string
if ($previousParameter->isDefaultValueAvailable()) {
$previousParameterCode .= ' = '.var_export($previousParameter->getDefaultValue(), true);
} elseif ($previousParameter->allowsNull()) {
// If a first argument has no default null value but is nullable (because of ?), we still put the null default value.
// If a first argument has no default null value but is nullable (because of ?),
// we still put the null default value.
$previousParameterCode .= ' = null';
}
}
Expand Down

0 comments on commit 09fce5f

Please sign in to comment.