highlights(hack): extend queries add tests

This commit is contained in:
Stephan Seitz 2021-11-23 18:23:57 +01:00
parent 77c006eb08
commit cc0bdabe5f
10 changed files with 280 additions and 5 deletions

View file

@ -0,0 +1,10 @@
$user_name = 'Fred';
echo "<tt>Hello <strong>$user_name</tt></strong>";
// XHP: Typechecked, well-formed, and secure
$user_name = 'Andrew';
$xhp = <tt>Hello <strong>{$user_name}</strong></tt>;
// ^ tag
// ^ tag
// ^ string
echo await $xhp->toStringAsync();