Skip to content

Commit 6884597

Browse files
committed
changed deprecated type hint Twig_NodeInterface to Twig_Node
1 parent 9db8d47 commit 6884597

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Twig/InlineCssNode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
use Twig_Compiler;
1515

16-
class InlineCssNode extends \Twig_Node
16+
class InlineCssNode extends \Twig_Node
1717
{
1818
private $debug;
19-
20-
public function __construct(\Twig_NodeInterface $body, $css, $lineno = 0, $debug, $tag = 'inlinecss')
19+
20+
public function __construct(\Twig_Node $body, $css, $lineno = 0, $debug, $tag = 'inlinecss')
2121
{
2222
$this->debug = $debug;
2323
parent::__construct(array('body' => $body), array('css' => $css), $lineno, $tag);

Twig/InlineCssParser.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use Symfony\Component\Config\FileLocatorInterface;
1515
use Symfony\Component\Templating\TemplateNameParserInterface;
16-
use Twig_NodeInterface;
16+
use Twig_Node;
1717
use Twig_Token;
1818

19-
class InlineCssParser extends \Twig_TokenParser
19+
class InlineCssParser extends \Twig_TokenParser
2020
{
2121
/**
2222
* @var TemplateNameParserInterface
@@ -57,18 +57,18 @@ public function __construct(FileLocatorInterface $locator, TemplateNameParserInt
5757
*
5858
* @param Twig_Token $token A Twig_Token instance
5959
*
60-
* @return Twig_NodeInterface A Twig_NodeInterface instance
60+
* @return Twig_Node A Twig_Node instance
6161
*/
6262
public function parse(Twig_Token $token)
6363
{
6464
$lineNo = $token->getLine();
65-
$stream = $this->parser->getStream();
65+
$stream = $this->parser->getStream();
6666
$path = $stream->expect(Twig_Token::STRING_TYPE)->getValue();
6767
$stream->expect(Twig_Token::BLOCK_END_TYPE);
6868
$body = $this->parser->subparse(array($this, 'decideEnd'), true);
6969
$stream->expect(Twig_Token::BLOCK_END_TYPE);
7070

71-
return new InlineCssNode($body, $this->resolvePath($path), $lineNo, $this->debug);
71+
return new InlineCssNode($body, $this->resolvePath($path), $lineNo, $this->debug);
7272
}
7373

7474
/**
@@ -80,7 +80,7 @@ public function getTag()
8080
{
8181
return 'inlinecss';
8282
}
83-
83+
8484
public function decideEnd(Twig_Token $token)
8585
{
8686
return $token->test('endinlinecss');

0 commit comments

Comments
 (0)