Skip to content

Commit

Permalink
d10changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sreenivasulu-paruchuri committed Oct 5, 2023
1 parent 957b748 commit 7c3c873
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bolt-design-system/core-php",
"description": "Core PHP functionality for the Bolt Design System",
"version": "5.9.2",
"version": "5.9.1",
"type": "library",
"license": "MIT",
"authors": [
Expand All @@ -16,7 +16,7 @@
"repositories": [
{
"type": "vcs",
"url": "https://github.com/sreenivasulu-paruchuri/twig-tools.git",
"url": "https://github.com/boltdesignsystem/twig-tools",
"no-api": true
}
],
Expand All @@ -26,7 +26,7 @@
}
},
"require": {
"basaltinc/twig-tools": "1.4.4",
"basaltinc/twig-tools": "dev-master as 1.4.3",
"michelf/php-markdown": "^1.8.0",
"webmozart/path-util": "^2.3",
"shudrum/array-finder": "^1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Layout/GridCellTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function parse(\Twig\Token $token) {
$stream->expect(\Twig\Token::BLOCK_END_TYPE);
}

return new GridCellNode(new \Twig_Node($params), $lineno, $this->getTag());
return new GridCellNode(new \Twig\Node\Node($params), $lineno, $this->getTag());
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Layout/GridTagTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function parse(\Twig\Token $token) {
$continue = false;
break;
default:
throw new \Twig_Error_Syntax(sprintf('Unexpected end of template. Twig was looking for the following tags "endgrid" to close the "grid" block started at line %d)', $lineno), -1);
throw new \Twig\Error\SyntaxError(sprintf('Unexpected end of template. Twig was looking for the following tags "endgrid" to close the "grid" block started at line %d)', $lineno), -1);
}

// you want $body at the beginning of your arguments
Expand All @@ -54,7 +54,7 @@ public function parse(\Twig\Token $token) {
$stream->expect(\Twig\Token::BLOCK_END_TYPE);
}

return new GridTagNode(new \Twig_Node($params), $lineno, $this->getTag());
return new GridTagNode(new \Twig\Node\Node($params), $lineno, $this->getTag());
}

/**
Expand Down

0 comments on commit 7c3c873

Please sign in to comment.