Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return UnionType::fromFullyQualifiedPHPDocAndRealString('\Closure', '\Closure|false|null');
Severity: Major
Found in src/Phan/Plugin/Internal/ClosureReturnTypeOverridePlugin.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return UnionType::fromFullyQualifiedRealString('int|string|null');
    Severity: Major
    Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

      Avoid too many return statements within this method.
      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()
      Severity: Major
      Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $argument_type;
        Severity: Major
        Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return 'Expected null or a list of strings' . self::errSuffixGotType($value);
          Severity: Major
          Found in src/Phan/Config.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $json_decode_array_or_object_types;
            Severity: Major
            Found in src/Phan/Plugin/Internal/DependentReturnTypeOverridePlugin.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return true;
              Severity: Major
              Found in src/Phan/Plugin/Internal/IssueFixingPlugin/IssueFixer.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return 'Expected a string' . self::errSuffixGotType($value);
                Severity: Major
                Found in src/Phan/Config.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return 'Expected a string' . self::errSuffixGotType($value);
                  Severity: Major
                  Found in src/Phan/Config.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return 'Expected a list of strings' . self::errSuffixGotType($value);
                    Severity: Major
                    Found in src/Phan/Config.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return "Expected an associative array mapping strings to strings: index $i is '" . gettype($element) . "'";
                      Severity: Major
                      Found in src/Phan/Config.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $null_type->asRealUnionType();
                        Severity: Major
                        Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return false;
                          Severity: Major
                          Found in src/Phan/Bootstrap.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $probably_real_assoc_array;
                            Severity: Major
                            Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return NullType::instance(false)->asRealUnionType();
                              Severity: Major
                              Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return ConfigPluginSet::instance()->shouldSuppressIssue(
                                            $code_base,
                                            $context,
                                            $issue_type,
                                            $lineno,
                                Severity: Major
                                Found in src/Phan/Issue.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return "Expected a list of strings: index $i is type '" . gettype($element) . "'";
                                  Severity: Major
                                  Found in src/Phan/Config.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return UnionType::fromFullyQualifiedPHPDocAndRealString('list<mixed>', '?list<mixed>');
                                    Severity: Major
                                    Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return false;
                                      Severity: Major
                                      Found in src/Phan/Plugin/Internal/PhantasmPlugin/PhantasmVisitor.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return null;
                                        Severity: Major
                                        Found in src/Phan/Config.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language