Skip to content

3.1.0

Latest

Choose a tag to compare

@aymanrb aymanrb released this 28 Mar 07:01
· 2 commits to master since this release
18b9c33
  • parseText() returns early on empty/whitespace input with a warning log
  • Template variable names validated as valid PCRE group identifiers; new InvalidTemplateVariableNameException is thrown on failure
  • Prepared regex validated before return; new InvalidTemplateSyntaxException with PCRE error message is thrown on failure
  • In-memory template cache in TemplatesHelper to avoid redundant disk reads on repeated parseText() calls
  • ParseResult implements \IteratorAggregate + \Countable for native foreach and count()
  • ParseResult::getOrFail(): A strict accessor with non-nullable string return type was added
  • All log messages enriched with file path, byte size, template count, similarity flag, key count for easier debugging
  • PHPStan level-8 added as a dev tool