@@ -97,7 +97,7 @@ public function findSpecifiedType(
9797 return null ;
9898 } elseif ($ functionName === 'in_array ' && $ argsCount >= 2 ) {
9999 $ haystackArg = $ args [1 ]->value ;
100- $ haystackType = ( $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ haystackArg ) : $ scope ->getNativeType ($ haystackArg) );
100+ $ haystackType = $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ haystackArg ) : $ scope ->getNativeType ($ haystackArg );
101101 if ($ haystackType instanceof MixedType) {
102102 return null ;
103103 }
@@ -107,7 +107,7 @@ public function findSpecifiedType(
107107 }
108108
109109 $ needleArg = $ args [0 ]->value ;
110- $ needleType = ( $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ needleArg ) : $ scope ->getNativeType ($ needleArg) );
110+ $ needleType = $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ needleArg ) : $ scope ->getNativeType ($ needleArg );
111111
112112 $ isStrictComparison = false ;
113113 if ($ argsCount >= 3 ) {
@@ -198,7 +198,7 @@ public function findSpecifiedType(
198198 }
199199 } elseif ($ functionName === 'method_exists ' && $ argsCount >= 2 ) {
200200 $ objectArg = $ args [0 ]->value ;
201- $ objectType = ( $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ objectArg ) : $ scope ->getNativeType ($ objectArg) );
201+ $ objectType = $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ objectArg ) : $ scope ->getNativeType ($ objectArg );
202202
203203 if ($ objectType instanceof ConstantStringType
204204 && !$ this ->reflectionProvider ->hasClass ($ objectType ->getValue ())
@@ -207,7 +207,7 @@ public function findSpecifiedType(
207207 }
208208
209209 $ methodArg = $ args [1 ]->value ;
210- $ methodType = ( $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ methodArg ) : $ scope ->getNativeType ($ methodArg) );
210+ $ methodType = $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ methodArg ) : $ scope ->getNativeType ($ methodArg );
211211
212212 if ($ methodType instanceof ConstantStringType) {
213213 if ($ objectType instanceof ConstantStringType) {
@@ -273,7 +273,7 @@ public function findSpecifiedType(
273273 return null ;
274274 }
275275
276- $ rootExprType = ( $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ rootExpr ) : $ scope ->getNativeType ($ rootExpr) );
276+ $ rootExprType = $ this ->treatPhpDocTypesAsCertain ? $ scope ->getType ($ rootExpr ) : $ scope ->getNativeType ($ rootExpr );
277277 if ($ rootExprType instanceof ConstantBooleanType) {
278278 return $ rootExprType ->getValue ();
279279 }
0 commit comments