Add type hints to private properties

This commit is contained in:
Fabien Potencier
2023-12-13 18:52:03 +01:00
parent ffa55e8cae
commit 35640b6d2d
49 changed files with 342 additions and 186 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ namespace Twig;
*/
final class Source
{
private $code;
private $name;
private $path;
private string $code;
private string $name;
private string $path;
/**
* @param string $code The template source code