diff --git a/phpstan.neon b/phpstan.neon
index 15ed9728..e9744f10 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -53,3 +53,6 @@ parameters:
# paths:
# - ...
# - ...
+ -
+ message: "#^Call to deprecated method #"
+ path: www/admin/class_test*.php
diff --git a/www/admin/class_test.html_build.element.php b/www/admin/class_test.html_build.element.php
index 94bdcc40..68bb56f6 100644
--- a/www/admin/class_test.html_build.element.php
+++ b/www/admin/class_test.html_build.element.php
@@ -75,7 +75,6 @@ print "EL_O:
" . print_r($el_o, true) . "
";
echo "
";
print "buildHtml(): " . htmlentities($el_o->buildHtml()) . "
";
echo "
";
-/** @phpstan-ignore-next-line */
print "phfo(\$el_o): " . htmlentities($el_o::printHtmlFromObject($el_o, true)) . "
";
echo "
";
print "phfa(\$el_list): " . htmlentities($el_o::buildHtmlFromList($el_o_list, true)) . "
";
diff --git a/www/admin/class_test.lang.php b/www/admin/class_test.lang.php
index fc7a9a95..989bdd02 100644
--- a/www/admin/class_test.lang.php
+++ b/www/admin/class_test.lang.php
@@ -51,7 +51,6 @@ echo "
AUTO DETECT
";
// DEPRECATED
// $get_locale = Language\GetLocale::setLocale();
// print "[AUTO, DEPRECATED]: " . Support::printAr($get_locale) . "
";
-/** @phpstan-ignore-next-line */
$get_locale = Language\GetLocale::setLocaleFromSession(
SITE_LOCALE,
str_replace('/', '', CONTENT_PATH),
@@ -59,7 +58,6 @@ $get_locale = Language\GetLocale::setLocaleFromSession(
BASE . INCLUDES . LOCALE
);
print "[NAMED CONSTANTS OUTSIDE]: " . Support::printAr($get_locale) . "
";
-/** @phpstan-ignore-next-line */
$get_locale = Language\GetLocale::setLocaleFromSession(
'en',
'foo',
@@ -76,7 +74,6 @@ $_SESSION['DEFAULT_LOCALE'] = 'ja_JP.UTF-8';
$_SESSION['DEFAULT_CHARSET'] = 'UTF-8';
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
-/** @phpstan-ignore-next-line */
$get_locale = Language\GetLocale::setLocaleFromSession(
SITE_LOCALE,
SITE_DOMAIN,
@@ -93,7 +90,6 @@ $_SESSION['DEFAULT_LOCALE'] = '00000#####';
$_SESSION['DEFAULT_CHARSET'] = '';
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
-/** @phpstan-ignore-next-line */
$get_locale = Language\GetLocale::setLocaleFromSession(
SITE_LOCALE,
SITE_DOMAIN,
diff --git a/www/admin/class_test.readenvfile.php b/www/admin/class_test.readenvfile.php
index 08c989a0..2e569e32 100644
--- a/www/admin/class_test.readenvfile.php
+++ b/www/admin/class_test.readenvfile.php
@@ -35,7 +35,6 @@ print '' . $PAGE_NAME . '
';
print "ALREADY from config.php: " . \CoreLibs\Debug\Support::printAr($_ENV) . "
";
// test .env in local
-/** @phpstan-ignore-next-line */
$status = \CoreLibs\Get\DotEnv::readEnvFile('.', 'test.env');
print "test.env: STATUS: " . $status . "
";
print "AFTER reading test.env file: " . \CoreLibs\Debug\Support::printAr($_ENV) . "
";