From ae55f03cb2b962035e01502ddb3faf3a552eac18 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 13 Mar 2024 16:00:58 +0100 Subject: [PATCH] Update 2021-08-16-stamp-1-how-to-compile-twig-to-php.md (#1463) Typos --- .../2021/2021-08-16-stamp-1-how-to-compile-twig-to-php.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.