Remove deprecation

This commit is contained in:
Fabien Potencier
2024-11-25 09:59:26 +01:00
parent ce20da6be9
commit c192cbff74
+1 -6
View File
@@ -28,13 +28,8 @@ final class TokenStream
*/
public function __construct(
private array $tokens,
private ?Source $source = null,
private Source $source,
) {
if (null === $this->source) {
trigger_deprecation('twig/twig', '3.16', \sprintf('Not passing a "%s" object to "%s" constructor is deprecated.', Source::class, __CLASS__));
$this->source = new Source('', '');
}
}
public function __toString()