Skip to content

Commit

Permalink
Update 2021-08-16-stamp-1-how-to-compile-twig-to-php.md (#1463)
Browse files Browse the repository at this point in the history
Typos
  • Loading branch information
ThomasLandauer authored Mar 13, 2024
1 parent b899821 commit ae55f03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ae55f03

Please sign in to comment.