Helpers
class Helpers
| internal |
Latte helpers.
Methods
static string|null
getSuggestion(array $items, string $value)
Finds the best suggestion.
static ReflectionFunctionAbstract
toReflection($callable)
intentionally without callable typehint, because it generates bad error messages
static array
sortBeforeAfter(array $list)
No description
static void
removeNulls(array $items)
No description
static array|null
mapCompiledToSource(string $compiledFile, int|null $compiledLine = null)
Attempts to map the compiled template to the source.
static string|null
guessTemplatePosition()
Tries to guess the position in the template from the backtrace
Details
at line 26
static string|null
getSuggestion(array $items, string $value)
Finds the best suggestion.
at line 42
static ReflectionFunctionAbstract
toReflection($callable)
intentionally without callable typehint, because it generates bad error messages
at line 58
static array
sortBeforeAfter(array $list)
No description
at line 96
static void
removeNulls(array $items)
No description
at line 105
static array|null
mapCompiledToSource(string $compiledFile, int|null $compiledLine = null)
Attempts to map the compiled template to the source.
at line 123
static string|null
guessTemplatePosition()
Tries to guess the position in the template from the backtrace