|
| | addSuggestions (string $name, array $items) |
| | __construct (string $message, int $lineno=-1, ?Source $source=null, ?\Throwable $previous=null) |
|
| getRawMessage () |
|
| getTemplateLine () |
|
| setTemplateLine (int $lineno) |
|
| getSourceContext () |
|
| setSourceContext (?Source $source=null) |
|
| guess () |
|
| appendMessage ($rawMessage) |
\Exception thrown when a syntax error occurs during lexing or parsing of a template.
- Auteur
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
◆ addSuggestions()
| addSuggestions |
( |
string | $name, |
|
|
array | $items ) |
Tweaks the error message to include suggestions.
- Paramètres
-
| string | $name | The original name of the item that does not exist |
| array | $items | An array of possible items |
La documentation de cette classe a été générée à partir du fichier suivant :
- vendor/twig/twig/src/Error/SyntaxError.php