{"record":{"id":"90108626cbca5fe1","repo":"nikic/PHP-Parser","slug":"invalid-value","errorCode":null,"errorMessage":"Invalid value","messagePattern":"Invalid value","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"lib/PhpParser/BuilderHelpers.php","lineNumber":276,"sourceCode":"                        self::normalizeValue($itemValue)\n                    );\n                } else {\n                    $lastKey = null;\n                    $items[] = new Node\\ArrayItem(\n                        self::normalizeValue($itemValue),\n                        self::normalizeValue($itemKey)\n                    );\n                }\n            }\n\n            return new Expr\\Array_($items);\n        }\n\n        if ($value instanceof \\UnitEnum) {\n            return new Expr\\ClassConstFetch(new FullyQualified(\\get_class($value)), new Identifier($value->name));\n        }\n\n        throw new \\LogicException('Invalid value');\n    }\n\n    /**\n     * Normalizes a doc comment: Converts plain strings to PhpParser\\Comment\\Doc.\n     *\n     * @param Comment\\Doc|string $docComment The doc comment to normalize\n     *\n     * @return Comment\\Doc The normalized doc comment\n     */\n    public static function normalizeDocComment($docComment): Comment\\Doc {\n        if ($docComment instanceof Comment\\Doc) {\n            return $docComment;\n        }\n\n        if (is_string($docComment)) {\n            return new Comment\\Doc($docComment);\n        }\n","sourceCodeStart":258,"sourceCodeEnd":294,"githubUrl":"https://github.com/nikic/PHP-Parser/blob/fbd47f7ebcbb450138d92642a0a53b72a5285dda/lib/PhpParser/BuilderHelpers.php#L258-L294","documentation":"Error \"Invalid value\" thrown in nikic/PHP-Parser.","triggerScenarios":"Thrown at lib/PhpParser/BuilderHelpers.php:276 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fbd47f7ebcbb450138d92642a0a53b72a5285dda","analyzedAt":"2026-08-17T03:58:32.123Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}