mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
⬆️ Upgrade lib : nikic/php-parser
We were on v3 that is no longer maintained and compatibility is annonced for PHP 7.2. v4 is active and supports PHP up to 8.0 No problem to update as this is only used in the config editor (\Combodo\iTop\Config\Validator\iTopConfigAstValidator)
This commit is contained in:
@@ -1 +0,0 @@
|
||||
../nikic/php-parser/bin/php-parse
|
||||
14
lib/bin/php-parse
Normal file
14
lib/bin/php-parse
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../nikic/php-parser/bin" && pwd)
|
||||
|
||||
if [ -d /proc/cygdrive ]; then
|
||||
case $(which php) in
|
||||
$(readlink -n /proc/cygdrive)/*)
|
||||
# We are in Cygwin using Windows php, so the path must be translated
|
||||
dir=$(cygpath -m "$dir");
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
"${dir}/php-parse" "$@"
|
||||
4
lib/bin/php-parse.bat
Normal file
4
lib/bin/php-parse.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
@ECHO OFF
|
||||
setlocal DISABLEDELAYEDEXPANSION
|
||||
SET BIN_TARGET=%~dp0/../nikic/php-parser/bin/php-parse
|
||||
php "%BIN_TARGET%" %*
|
||||
Reference in New Issue
Block a user