File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,6 @@ public function __construct(string $name, bool $isBuiltin) {
80
80
81
81
public static function fromNode (Node $ node ) {
82
82
if ($ node instanceof Node \Name) {
83
- if ($ node ->toString () === "mixed " ) {
84
- return new SimpleType ($ node ->toString (), true );
85
- }
86
-
87
83
assert ($ node ->isFullyQualified ());
88
84
return new SimpleType ($ node ->toString (), false );
89
85
}
@@ -680,7 +676,7 @@ function parseFunctionLike(
680
676
$ type && !$ type ->isNullable ()
681
677
) {
682
678
$ simpleType = $ type ->tryToSimpleType ();
683
- if ($ simpleType === null || $ simpleType -> name !== " mixed " ) {
679
+ if ($ simpleType === null ) {
684
680
throw new Exception (
685
681
"Parameter $ varName of function $ name has null default, but is not nullable " );
686
682
}
You can’t perform that action at this time.
0 commit comments