Skip to content

Commit e51250f

Browse files
committed
Update MixedType.php
1 parent 38886f3 commit e51250f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Type/MixedType.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
use PHPStan\Type\Traits\NonGenericTypeTrait;
3939
use PHPStan\Type\Traits\UndecidedComparisonCompoundTypeTrait;
4040
use function get_class;
41+
use function in_array;
4142
use function sprintf;
4243

4344
/** @api */
@@ -311,7 +312,7 @@ public function getCallableParametersAcceptors(ClassMemberAccessAnswerer $scope)
311312

312313
public function equals(Type $type): bool
313314
{
314-
if (get_class($type) !== self::class) {
315+
if (!in_array(get_class($type), [self::class, TemplateMixedType::class], true)) {
315316
return false;
316317
}
317318

0 commit comments

Comments
 (0)