Showing 3,272 of 4,939 total issues
Avoid too many return
statements within this method. Open
Open
return UnionType::fromFullyQualifiedPHPDocAndRealString('\Closure', '\Closure|false|null');
Avoid too many return
statements within this method. Open
Open
return UnionType::fromFullyQualifiedRealString('int|string|null');
Avoid too many return
statements within this method. Open
Open
return /** @param list<Node|int|float|string> $args */ static function (CodeBase $code_base, Context $context, Func $function, array $args) use ($probably_real_assoc_array, $can_reduce_size): UnionType {
if (\count($args) >= 1) {
$element_types = UnionTypeVisitor::unionTypeFromNode($code_base, $context, $args[0])->genericArrayTypes();
if (!$element_types->isEmpty()) {
return $element_types->withFlattenedTopLevelArrayShapeTypeInstances()
Avoid too many return
statements within this method. Open
Open
return $argument_type;
Avoid too many return
statements within this method. Open
Open
return 'Expected null or a list of strings' . self::errSuffixGotType($value);
Avoid too many return
statements within this method. Open
Open
return $json_decode_array_or_object_types;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return 'Expected a string' . self::errSuffixGotType($value);
Avoid too many return
statements within this method. Open
Open
return 'Expected a string' . self::errSuffixGotType($value);
Avoid too many return
statements within this method. Open
Open
return 'Expected a list of strings' . self::errSuffixGotType($value);
Avoid too many return
statements within this method. Open
Open
return "Expected an associative array mapping strings to strings: index $i is '" . gettype($element) . "'";
Avoid too many return
statements within this method. Open
Open
return $null_type->asRealUnionType();
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return $probably_real_assoc_array;
Avoid too many return
statements within this method. Open
Open
return NullType::instance(false)->asRealUnionType();
Avoid too many return
statements within this method. Open
Open
return ConfigPluginSet::instance()->shouldSuppressIssue(
$code_base,
$context,
$issue_type,
$lineno,
Avoid too many return
statements within this method. Open
Open
return "Expected a list of strings: index $i is type '" . gettype($element) . "'";
Avoid too many return
statements within this method. Open
Open
return UnionType::fromFullyQualifiedPHPDocAndRealString('list<mixed>', '?list<mixed>');
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return null;