-
Notifications
You must be signed in to change notification settings - Fork 695
Open
Description
hello.php:
<?php
function render(): void {
require 'template.php';
};
render();template.php:
<?php
/** @var string $name */
?>
Hello, my name is <?= htmlentities($name, ENT_QUOTES) ?>!In the example template, `` is required to be defined in the scope of the require call, so I'd expect static analysis to detect the missing required scope variable.
// this is useful for "PHP templates" implementation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels