Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Apr 24, 2024
1 parent e0b2b67 commit bb8e4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"require": {
"php": "^8.1",
"twig/twig": "~3.0",
"twig/twig": "~3.9",
"illuminate/support": "^9|^10|^11",
"illuminate/view": "^9|^10|^11"
},
Expand Down
19 changes: 1 addition & 18 deletions src/Node/GetAttrNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,23 +145,6 @@ public static function attribute(
return $object->$item;
}

// Note: Since twig:3.9 the 'twig_get_attribute' function was renamed to CoreExtension::getAttribute.
// Because this is an internal function of twig, the authors could break it in a minor version.
if (!function_exists('twig_get_attribute')) {
return CoreExtension::getAttribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
}

return \twig_get_attribute(
$env,
$source,
$object,
$item,
$arguments,
$type,
$isDefinedTest,
$ignoreStrictCheck,
$sandboxed,
$lineno
);
return CoreExtension::getAttribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
}
}

0 comments on commit bb8e4a7

Please sign in to comment.