diff --git a/resources/posts/2021/2021-08-16-stamp-1-how-to-compile-twig-to-php.md b/resources/posts/2021/2021-08-16-stamp-1-how-to-compile-twig-to-php.md index c4f415c6050..5dfa4a63152 100644 --- a/resources/posts/2021/2021-08-16-stamp-1-how-to-compile-twig-to-php.md +++ b/resources/posts/2021/2021-08-16-stamp-1-how-to-compile-twig-to-php.md @@ -2,10 +2,10 @@ id: 339 title: "STAMP #1: How to Compile Twig to PHP" perex: | - In the previous post, we looked [at *why* and *when* static analysis of templates matter](/blog/stamp-static-analysis-of-templates). Today we look at how to prepare starting point for Twig templates. + In the previous post, we looked [at *why* and *when* static analysis of templates matter](/blog/stamp-static-analysis-of-templates). Today we look at how to prepare a starting point for Twig templates. - How can we analyze templates with PHPStan that understand only PHP? There are 2 ways: we could teach PHPStan the language of Twig - a new "TWIGStan" tool. + How can we analyze templates with PHPStan which understands only PHP? There are 2 ways: we could teach PHPStan the language of Twig - a new "TWIGStan" tool. The other option is to take it from the other end - convert Twig to PHP.