mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Remove deprecation
This commit is contained in:
+1
-6
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user