mirror of
https://github.com/YunoHost-Apps/quizzes_ynh.git
synced 2024-09-03 20:16:11 +02:00
Create app-array_key_exists.patch
This commit is contained in:
parent
f9b75a3199
commit
2d882cd3c6
1 changed files with 11 additions and 0 deletions
11
sources/patches/app-array_key_exists.patch
Normal file
11
sources/patches/app-array_key_exists.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/vendor/twig/twig/lib/Twig/Template.php 2022-09-05 02:54:39.800617851 +0200
|
||||||
|
+++ a/vendor/twig/twig/lib/Twig/Template.php 2022-09-05 03:54:48.000000000 +0200
|
||||||
|
@@ -387,7 +387,7 @@
|
||||||
|
|
||||||
|
// object property
|
||||||
|
if (Twig_TemplateInterface::METHOD_CALL !== $type) {
|
||||||
|
- if (isset($object->$item) || array_key_exists((string) $item, $object)) {
|
||||||
|
+ if (isset($object->$item)) {
|
||||||
|
if ($isDefinedTest) {
|
||||||
|
return true;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue