Skip to content

Commit 118406a

Browse files
committed
Remove custom hacks from gen_stub.php after PHP-Parser upgrade
1 parent 4bba59d commit 118406a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build/gen_stub.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ public function __construct(string $name, bool $isBuiltin) {
8080

8181
public static function fromNode(Node $node) {
8282
if ($node instanceof Node\Name) {
83-
if ($node->toString() === "mixed") {
84-
return new SimpleType($node->toString(), true);
85-
}
86-
8783
assert($node->isFullyQualified());
8884
return new SimpleType($node->toString(), false);
8985
}
@@ -680,7 +676,7 @@ function parseFunctionLike(
680676
$type && !$type->isNullable()
681677
) {
682678
$simpleType = $type->tryToSimpleType();
683-
if ($simpleType === null || $simpleType->name !== "mixed") {
679+
if ($simpleType === null) {
684680
throw new Exception(
685681
"Parameter $varName of function $name has null default, but is not nullable");
686682
}

0 commit comments

Comments
 (0)