diff --git a/build_ohana.sh b/build_ohana.sh index c7b66a3768e3d5de188cb6c84de1792c755e6166..4077b9802f295e615cacbe0f8572e1643d5d5363 100755 --- a/build_ohana.sh +++ b/build_ohana.sh @@ -76,6 +76,7 @@ cp ../php8fix-package_run1.json ./package.json npm install cp ../php8fix-package.json ./package.json npm install +sed -i '/foreach ($array as $k => $v)/iif (empty($array)) return $r;' node_modules/@basalt/twig-renderer/vendor/twig/twig/src/Extension/CoreExtension.php echo "**************************************************************************************" echo "Done running npm install."