Showing 3,272 of 4,939 total issues

Method locateGlobalFunctionCompletion has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        CompletionRequest $request,
        CodeBase $code_base,
        Context $context,
        Node $node,
        string $incomplete_function_name
Severity: Minor
Found in src/Phan/LanguageServer/CompletionResolver.php - About 35 mins to fix

    Method showLongProgress has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        private static function showLongProgress(string $msg, float $p, float $memory, ?int $offset, ?int $count): void
    Severity: Minor
    Found in src/Phan/CLI.php - About 35 mins to fix

      Method withNamespaceMap has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              int $flags,
              string $alias,
              FullyQualifiedGlobalStructuralElement $target,
              int $lineno,
              CodeBase $code_base = null
      Severity: Minor
      Found in src/Phan/Language/Context.php - About 35 mins to fix

        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                Context $context,
                string $name,
                UnionType $type,
                int $flags,
                FullyQualifiedClassElement $fqsen
        Severity: Minor
        Found in src/Phan/Language/Element/ClassElement.php - About 35 mins to fix

          Method fromStringInContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  string $comment,
                  CodeBase $code_base,
                  Context $context,
                  int $lineno,
                  int $comment_type
          Severity: Minor
          Found in src/Phan/Language/Element/Comment.php - About 35 mins to fix

            Method warnDuplicateUse has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                private function warnDuplicateUse(CodeBase $code_base, FullyQualifiedGlobalStructuralElement $target, int $lineno, int $flags, string $alias): void
            Severity: Minor
            Found in src/Phan/Language/Context.php - About 35 mins to fix

              Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      Context $context,
                      string $name,
                      UnionType $type,
                      int $flags,
                      FQSEN $fqsen
              Severity: Minor
              Found in src/Phan/Language/Element/AddressableElement.php - About 35 mins to fix

                Method fromNode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        Context $context,
                        CodeBase $code_base,
                        Node $node,
                        FullyQualifiedMethodName $fqsen,
                        ?Clazz $class = null
                Severity: Minor
                Found in src/Phan/Language/Element/Method.php - About 35 mins to fix

                  Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          Context $context,
                          string $name,
                          UnionType $type,
                          int $flags,
                          FullyQualifiedClassConstantName $fqsen
                  Severity: Minor
                  Found in src/Phan/Language/Element/ClassConstant.php - About 35 mins to fix

                    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            string $name,
                            UnionType $type,
                            array $parameters,
                            bool $is_static,
                            int $line
                    Severity: Minor
                    Found in src/Phan/Language/Element/Comment/Method.php - About 35 mins to fix

                      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public function __construct(FileRef $file_ref, array $params, UnionType $return_type, bool $returns_reference, bool $is_nullable)
                      Severity: Minor
                      Found in src/Phan/Language/Type/FunctionLikeDeclarationType.php - About 35 mins to fix

                        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public function __construct(UnionType $type, bool $is_variadic, bool $is_reference, bool $is_optional, string $name = null)
                        Severity: Minor
                        Found in src/Phan/Language/Type/ClosureDeclarationParameter.php - About 35 mins to fix

                          Method make has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  string $namespace,
                                  string $type_name,
                                  array $template_parameter_type_list,
                                  bool $is_nullable,
                                  int $source
                          Severity: Minor
                          Found in src/Phan/Language/Type.php - About 35 mins to fix

                            Method fromFunctionLikeInContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    bool $is_closure_type,
                                    array $shape_components,
                                    Context $context,
                                    int $source,
                                    bool $is_nullable
                            Severity: Minor
                            Found in src/Phan/Language/Type.php - About 35 mins to fix

                              Method createVarForInlineComment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  private static function createVarForInlineComment(CodeBase $code_base, Context $context, string $variable_name, UnionType $type, bool $create_variable): void
                              Severity: Minor
                              Found in src/Phan/BlockAnalysisVisitor.php - About 35 mins to fix

                                Method suggestSimilarMethodMap has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    public static function suggestSimilarMethodMap(CodeBase $code_base, Context $context, Clazz $class, string $wanted_method_name, bool $is_static): array
                                Severity: Minor
                                Found in src/Phan/IssueFixSuggester.php - About 35 mins to fix

                                  Method suggestSimilarPropertyMap has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public static function suggestSimilarPropertyMap(CodeBase $code_base, Context $context, Clazz $class, string $wanted_property_name, bool $is_static): array
                                  Severity: Minor
                                  Found in src/Phan/IssueFixSuggester.php - About 35 mins to fix

                                    Method suggestSimilarProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public static function suggestSimilarProperty(CodeBase $code_base, Context $context, Clazz $class, string $wanted_property_name, bool $is_static): ?Suggestion
                                    Severity: Minor
                                    Found in src/Phan/IssueFixSuggester.php - About 35 mins to fix

                                      Method suggestSimilarGlobalFunction has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              CodeBase $code_base,
                                              Context $context,
                                              FullyQualifiedFunctionName $function_fqsen,
                                              bool $suggest_in_global_namespace = true,
                                              string $prefix = ""
                                      Severity: Minor
                                      Found in src/Phan/IssueFixSuggester.php - About 35 mins to fix

                                        Method suggestSimilarClassForGenericFQSEN has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            public static function suggestSimilarClassForGenericFQSEN(CodeBase $code_base, Context $context, FQSEN $fqsen, ?Closure $filter = null, string $prefix = 'Did you mean'): ?Suggestion
                                        Severity: Minor
                                        Found in src/Phan/IssueFixSuggester.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language