{"record":{"id":"736ce3a9dc284dbd","repo":"octobercms/october","slug":"invalid-syntax-in-the-partial-tag-line-s","errorCode":null,"errorMessage":"Invalid syntax in the partial tag. Line %s","messagePattern":"Invalid syntax in the partial tag\\. Line (.+?)","errorType":"exception","errorClass":"Twig\\Error\\SyntaxError","httpStatus":null,"severity":"error","filePath":"modules/cms/twig/tokenparser/PartialTokenParser.php","lineNumber":85,"sourceCode":"                continue;\n            }\n\n            if ($current->test(TwigToken::NAME_TYPE)) {\n                $paramName = $current->getValue();\n\n                // Support hyphenated attribute names like `data-testid` and `aria-label`.\n                // Twig tokenizes them as NAME `-` NAME ..., so consume the pieces until `=`.\n                while ($stream->test(TwigToken::OPERATOR_TYPE, '-')) {\n                    $stream->next();\n                    $paramName .= '-' . $stream->expect(TwigToken::NAME_TYPE)->getValue();\n                }\n\n                $stream->expect(TwigToken::OPERATOR_TYPE, '=');\n                $nodes[$paramName] = $this->parser->parseExpression();\n                $paramNames[] = $paramName;\n            }\n            else {\n                throw new TwigErrorSyntax(\n                    sprintf('Invalid syntax in the partial tag. Line %s', $lineno),\n                    $stream->getCurrent()->getLine(),\n                    $stream->getSourceContext()\n                );\n            }\n        }\n\n        $stream->expect(TwigToken::BLOCK_END_TYPE);\n\n        if ($hasBody) {\n            $body = $this->parser->subparse([$this, 'decidePartialEnd'], true);\n            $stream->expect(TwigToken::BLOCK_END_TYPE);\n        }\n\n        $options = [\n            'paramNames' => $paramNames,\n            'hasOnly' => $hasOnly,\n            'hasLazy' => $hasLazy,","sourceCodeStart":67,"sourceCodeEnd":103,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/twig/tokenparser/PartialTokenParser.php#L67-L103","documentation":"Error \"Invalid syntax in the partial tag. Line %s\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/twig/tokenparser/PartialTokenParser.php:85 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}