Commit Graph

7 Commits

Author SHA1 Message Date
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
218de96024 Fix WordPress.WP.I18n.MissingTranslatorsComment errors
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
b05e6d414c Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods
are used, the sniffer can not properly be applied.

[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
6a7b2f3952 Try to create the temporary folder
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
4ffb4e0dc2 Rename temp folder creation method
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
89b871775a Introduce TwigEnvironment
This commit introduces our own TwigEnvironment class which extends the original Twig\Environment.
The original class produced a different templateClass depending on the PHP version and
the selected options. As we can not rely on PHP version, this would have produced different
template hash keys in the end and Twig would have attempted to store new templates
on the disk, which we want to prevent.

[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00