equals(Node::value(null)); } public function matches(Type $other): bool { if ($other instanceof UnionType) { return $other->isMatchedBy($this); } return $other instanceof self || $other instanceof MixedType; } public function inferGenericsFrom(Type $other, Generics $generics): Generics { return $generics; } public function nativeType(): Type { return $this; } public function toString(): string { return 'null'; } }