Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #4328 Improve formatDate methods phpdoc (VincentLanglet)
This PR was merged into the 3.x branch. Discussion ---------- Improve formatDate methods phpdoc `convertDate` - Supports null https://github.com/twigphp/Twig/blob/3.x/src/Extension/CoreExtension.php#L539 - Supports timestamp passed as integer https://github.com/twigphp/Twig/blob/3.x/src/Extension/CoreExtension.php#L549 So the phpdoc should not be `\DateTimeInterface|string|null` but `\DateTimeInterface|string|int|null` And all the date methods using `convertDate` should also accepts int and null. This is important since some tools are developing static analysis on twig. Commits ------- 3be417d Improve date methods phpdoc
- Loading branch information