PHP unit 8.2, cel builder br/input fix, doctype add, sync .user.ini

- do not sync .user.ini file in sync template
- add PHP 8.2 for test target phpunit
- cel/phfo builder update to not close br or img tags (besides input)
- psalm settings update
- add doctype to all base templates
This commit is contained in:
Clemens Schwaighofer
2022-12-27 16:56:33 +09:00
parent 6e59b63791
commit 8ef309d479
7 changed files with 12 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ if [ ! -z "${1}" ]; then
"7.4") php_bin="/usr/bin/php7.4 "; ;;
"8.0") php_bin="/usr/bin/php8.0 "; ;;
"8.1") php_bin="/usr/bin/php8.1 "; ;;
"8.2") php_bin="/usr/bin/php8.2 "; ;;
*) echo "Not support PHP: ${1}"; exit; ;;
esac;
fi;
@@ -25,6 +26,7 @@ if [ ! -z "${2}" ] && [ -z "${php_bin}" ]; then
"7.4") php_bin="/usr/bin/php7.4 "; ;;
"8.0") php_bin="/usr/bin/php8.0 "; ;;
"8.1") php_bin="/usr/bin/php8.1 "; ;;
"8.2") php_bin="/usr/bin/php8.2 "; ;;
*) echo "Not support PHP: ${1}"; exit; ;;
esac;
fi;

View File

@@ -18,6 +18,7 @@ rm -f $tmpf_web;
echo ".*.swp" >> $tmpf_web;
echo "._*" >> $tmpf_web;
echo ".DS_Store" >> $tmpf_web;
echo ".user.ini" >> $tmpf_web;
echo ".svn" >> $tmpf_web;
echo ".svnignore" >> $tmpf_web;
echo ".git" >> $tmpf_web;

View File

@@ -8,6 +8,7 @@
********************************************************************
*}
<!doctype html>
<html>
<head>
<title>{$HTML_TITLE}</title>

View File

@@ -8,6 +8,7 @@
********************************************************************
*}
<!doctype html>
<html>
<head>
<title>{$HTML_TITLE}</title>

View File

@@ -8,6 +8,7 @@
********************************************************************
*}
<!doctype html>
<html>
<head>
<title>{$HTML_TITLE}</title>

View File

@@ -1014,8 +1014,12 @@ function phfo(tree)
} else if (tree.content) {
content.push(tree.content);
}
// if not input close
if (tree.tag != 'input') {
// if not input, image or br, then close
if (
tree.tag != 'input' ||
tree.tag != 'img' ||
tree.tag != 'br'
) {
content.push('</' + tree.tag + '>');
}
// combine to string

View File

@@ -28,7 +28,6 @@
<directory name="lib/FileUpload" />
<directory name="lib/Smarty" />
<directory name="lib/smarty-4.1.0" />
<file name="lib/smarty-4.1.0/SmartyBC.class.php" />
<file name="lib/Smarty/Smarty.class.php" />
<file name="lib/CoreLibs/Template/SmartyExtend.php" />
</ignoreFiles>