Skip to content

Commit 412cbdc

Browse files
authored
Bump version (#442)
1 parent e0b2b67 commit 412cbdc

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"require": {
1717
"php": "^8.1",
18-
"twig/twig": "~3.0",
18+
"twig/twig": "~3.9",
1919
"illuminate/support": "^9|^10|^11",
2020
"illuminate/view": "^9|^10|^11"
2121
},

src/Node/GetAttrNode.php

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,6 @@ public static function attribute(
145145
return $object->$item;
146146
}
147147

148-
// Note: Since twig:3.9 the 'twig_get_attribute' function was renamed to CoreExtension::getAttribute.
149-
// Because this is an internal function of twig, the authors could break it in a minor version.
150-
if (!function_exists('twig_get_attribute')) {
151-
return CoreExtension::getAttribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
152-
}
153-
154-
return \twig_get_attribute(
155-
$env,
156-
$source,
157-
$object,
158-
$item,
159-
$arguments,
160-
$type,
161-
$isDefinedTest,
162-
$ignoreStrictCheck,
163-
$sandboxed,
164-
$lineno
165-
);
148+
return CoreExtension::getAttribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
166149
}
167150
}

0 commit comments

Comments
 (0)