Skip to content
Permalink
Browse files

Remove redundant calls

  • Loading branch information
muglug committed Dec 7, 2019
1 parent 5281809 commit f0cd7eab04810fa83b3ac25b3c0b986633c50384
@@ -163,8 +163,7 @@ public static function analyze(
} elseif ($lhs_type_part instanceof Type\Atomic\GetClassT) {
$class_name = 'object';

if ($lhs_type_part->as_type
&& $lhs_type_part->as_type->hasObjectType()
if ($lhs_type_part->as_type->hasObjectType()
&& $lhs_type_part->as_type->isSingle()
) {
foreach ($lhs_type_part->as_type->getTypes() as $typeof_type_atomic) {
@@ -237,8 +237,7 @@ public static function analyze(
) {
$fq_class_name = 'object';

if ($lhs_type_part->as_type
&& $lhs_type_part->as_type->hasObjectType()
if ($lhs_type_part->as_type->hasObjectType()
&& $lhs_type_part->as_type->isSingle()
) {
foreach ($lhs_type_part->as_type->getTypes() as $typeof_type_atomic) {

0 comments on commit f0cd7ea

Please sign in to comment.
You can’t perform that action at this time.