Skip to content

Commit 0d79039

Browse files
gen_stub: simplify ArgInfo::getDefaultValueAsMethodSynopsisString()
There is no need to add special handling for the default value of `null`, since it is not loosely-equals to any of the strings 'UNKNOWN', 'false', 'true', or 'null' it will just be returned directly anyway.
1 parent 45d313b commit 0d79039

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

build/gen_stub.php

-4
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,6 @@ public function getDefaultValueAsArginfoString(): string {
848848
}
849849

850850
public function getDefaultValueAsMethodSynopsisString(): ?string {
851-
if ($this->defaultValue === null) {
852-
return null;
853-
}
854-
855851
switch ($this->defaultValue) {
856852
case 'UNKNOWN':
857853
return null;

0 commit comments

Comments
 (0)