Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor twigphp#1401 [Twig][Tests][Fixtures][filters] Added empty strin…
…g tests for "first" and "last" filters (ureimers) This PR was squashed before being merged into the 1.15-dev branch (closes twigphp#1401). Discussion ---------- [Twig][Tests][Fixtures][filters] Added empty string tests for "first" and "last" filters | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT This was already fixed with with 6003ae4 but to make sure there won't be any regression bugs in the future. This is an edge case but the first and the last element of an empty string are empty strings too. Before the above mentioned PR this threw a notice `Uninitialized string offset: 0`. Commits ------- 0db5c31 [Twig][Tests][Fixtures][filters] Added empty string tests for "first" and "last" filters
- Loading branch information