class_test fixes for phpstan checks
This commit is contained in:
@@ -53,3 +53,6 @@ parameters:
|
|||||||
# paths:
|
# paths:
|
||||||
# - ...
|
# - ...
|
||||||
# - ...
|
# - ...
|
||||||
|
-
|
||||||
|
message: "#^Call to deprecated method #"
|
||||||
|
path: www/admin/class_test*.php
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ print "EL_O: <pre>" . print_r($el_o, true) . "</pre>";
|
|||||||
echo "<hr>";
|
echo "<hr>";
|
||||||
print "buildHtml(): <pre>" . htmlentities($el_o->buildHtml()) . "</pre>";
|
print "buildHtml(): <pre>" . htmlentities($el_o->buildHtml()) . "</pre>";
|
||||||
echo "<hr>";
|
echo "<hr>";
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
print "phfo(\$el_o): <pre>" . htmlentities($el_o::printHtmlFromObject($el_o, true)) . "</pre>";
|
print "phfo(\$el_o): <pre>" . htmlentities($el_o::printHtmlFromObject($el_o, true)) . "</pre>";
|
||||||
echo "<hr>";
|
echo "<hr>";
|
||||||
print "phfa(\$el_list): <pre>" . htmlentities($el_o::buildHtmlFromList($el_o_list, true)) . "</pre>";
|
print "phfa(\$el_list): <pre>" . htmlentities($el_o::buildHtmlFromList($el_o_list, true)) . "</pre>";
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ echo "<br><b>AUTO DETECT</b><br>";
|
|||||||
// DEPRECATED
|
// DEPRECATED
|
||||||
// $get_locale = Language\GetLocale::setLocale();
|
// $get_locale = Language\GetLocale::setLocale();
|
||||||
// print "[AUTO, DEPRECATED]: " . Support::printAr($get_locale) . "<br>";
|
// print "[AUTO, DEPRECATED]: " . Support::printAr($get_locale) . "<br>";
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$get_locale = Language\GetLocale::setLocaleFromSession(
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
SITE_LOCALE,
|
SITE_LOCALE,
|
||||||
str_replace('/', '', CONTENT_PATH),
|
str_replace('/', '', CONTENT_PATH),
|
||||||
@@ -59,7 +58,6 @@ $get_locale = Language\GetLocale::setLocaleFromSession(
|
|||||||
BASE . INCLUDES . LOCALE
|
BASE . INCLUDES . LOCALE
|
||||||
);
|
);
|
||||||
print "[NAMED CONSTANTS OUTSIDE]: " . Support::printAr($get_locale) . "<br>";
|
print "[NAMED CONSTANTS OUTSIDE]: " . Support::printAr($get_locale) . "<br>";
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$get_locale = Language\GetLocale::setLocaleFromSession(
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
'en',
|
'en',
|
||||||
'foo',
|
'foo',
|
||||||
@@ -76,7 +74,6 @@ $_SESSION['DEFAULT_LOCALE'] = 'ja_JP.UTF-8';
|
|||||||
$_SESSION['DEFAULT_CHARSET'] = 'UTF-8';
|
$_SESSION['DEFAULT_CHARSET'] = 'UTF-8';
|
||||||
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
|
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
|
||||||
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
|
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$get_locale = Language\GetLocale::setLocaleFromSession(
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
SITE_LOCALE,
|
SITE_LOCALE,
|
||||||
SITE_DOMAIN,
|
SITE_DOMAIN,
|
||||||
@@ -93,7 +90,6 @@ $_SESSION['DEFAULT_LOCALE'] = '00000#####';
|
|||||||
$_SESSION['DEFAULT_CHARSET'] = '';
|
$_SESSION['DEFAULT_CHARSET'] = '';
|
||||||
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
|
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
|
||||||
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
|
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$get_locale = Language\GetLocale::setLocaleFromSession(
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
SITE_LOCALE,
|
SITE_LOCALE,
|
||||||
SITE_DOMAIN,
|
SITE_DOMAIN,
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
|||||||
print "ALREADY from config.php: " . \CoreLibs\Debug\Support::printAr($_ENV) . "<br>";
|
print "ALREADY from config.php: " . \CoreLibs\Debug\Support::printAr($_ENV) . "<br>";
|
||||||
|
|
||||||
// test .env in local
|
// test .env in local
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
$status = \CoreLibs\Get\DotEnv::readEnvFile('.', 'test.env');
|
$status = \CoreLibs\Get\DotEnv::readEnvFile('.', 'test.env');
|
||||||
print "test.env: STATUS: " . $status . "<br>";
|
print "test.env: STATUS: " . $status . "<br>";
|
||||||
print "AFTER reading test.env file: " . \CoreLibs\Debug\Support::printAr($_ENV) . "<br>";
|
print "AFTER reading test.env file: " . \CoreLibs\Debug\Support::printAr($_ENV) . "<br>";
|
||||||
|
|||||||
Reference in New Issue
Block a user