Clemens Schwaighofer
537bc0a477
add phpstan strict
2023-02-28 06:39:36 +09:00
Clemens Schwaighofer
16c3653cee
phpstan updates for Smarty move to composer package
2023-02-22 06:42:53 +09:00
Clemens Schwaighofer
78e1d73cd9
Move code from edit_base.php to class file
2023-01-06 15:07:15 +09:00
Clemens Schwaighofer
4b3fbaa309
Updates based on latest phpstan run
2022-09-02 17:00:22 +09:00
Clemens Schwaighofer
51e700cd10
Fixes from phan/phpstan tests
2022-04-28 14:17:30 +09:00
Clemens Schwaighofer
f8ee6044f9
Upgrade from Smarty 3 to Smarty 4 to be PHP 8.1 compatible
...
Remove all Smarty4 dedicated tests, all are done in the same test file
like before
2022-04-06 15:19:06 +09:00
Clemens Schwaighofer
0109a67b20
Change Random key base to be string not array
...
Because we do not have double byte characters in there we use a string
so we don't have to do any array work. Return is also a string and not
an array that is then converted to string.
Add info to Colors Class for oklab code that we should use as basic for
all conversions
2022-02-21 06:50:45 +09:00
Clemens Schwaighofer
6a139d3b7c
Ignore errors in DB\SQL\PgSQL for phpstan
...
phpstan will throw an error because pg_* methods have changed from
resource to object in php 8.1
So current var has object|resource dual type and this will fail
Added ignore for phpstan in the config file.
Also added conditional config file for phpstan where we can set based on
current active PHP version
baseline file created with --generate-baseline is added for error check
2022-01-20 13:49:11 +09:00
Clemens Schwaighofer
2a697817fd
Ignore smarty4 checks, phan/phpstan fixes
...
OPEN: resource to resource/object/false check in phpstan
2022-01-20 11:03:58 +09:00
Clemens Schwaighofer
6147d28b37
some backend admin class var declarations fixes
2021-11-02 10:14:55 +09:00
Clemens Schwaighofer
f9072f64f1
Ignore defined + empty check php stan errors
2021-11-02 10:06:30 +09:00
Clemens Schwaighofer
08bbc913a9
Updates for phpstan 1.0 level 8, fix spaces in config.master.php, add phpunit tets for math, email; update email class with more check methods
2021-11-02 09:16:23 +09:00
Clemens Schwaighofer
4c859ada01
Add phpunit tests folder, fix in Math method floorp when precision was larger then number length
2021-10-29 11:12:23 +09:00
Clemens Schwaighofer
edfbe476c4
Composer.json add lib/ folder, fix Smart extended class
...
Smarty extended class is now included in checks and is fixed.
Add the lib/ folder to the composer.json autoloader block so we can use
the composer autoloader and not the one from CoreLibs
Added an autoloader load test backend file
2021-10-28 10:11:56 +09:00
Clemens Schwaighofer
0b7dba5e2f
PHPstan composer autoloader boostrap
2021-10-27 17:46:29 +09:00
Clemens Schwaighofer
a6b42f243f
Update CoreLibs with phpstan level 8, add qqFileUploader implementation base, add base Test class for testing
2021-10-26 16:35:26 +09:00
Clemens Schwaighofer
736f822363
PHPstan check for level 5
...
Fix various issues for phpstan level 5
Start initial settings for level 6 (needs type declarations for all
vars)
2021-10-22 11:14:00 +09:00
Clemens Schwaighofer
ee4417fc52
Settings update for phpstan
2020-06-18 13:49:57 +09:00
Clemens Schwaighofer
ee1dafd8d8
PHP stan settings update, vscode config file
2020-06-18 13:44:57 +09:00
Clemens Schwaighofer
f6424bdd35
Minor updates for set checks, example update for host config
...
Host config example for a pre-set config array to attach.
Update fixes for admin_set_paths, ACL\Login unset variable/index check
2019-09-26 12:36:54 +09:00
Clemens Schwaighofer
ea3a8edae6
phpstan tmp dir folder name fix
2019-09-24 14:16:08 +09:00
Clemens Schwaighofer
d04cc380b2
Set phpstan tmp dir, Basic class check date/time empty date fix
...
set explicit tmp folder for phpstan to not overlap with other users
Basic class return false for unset date or datetime parameter
2019-09-24 14:12:33 +09:00
Clemens Schwaighofer
98bf11e0c9
Bug fix in Basic class string to bytes convert
2019-09-20 16:25:14 +09:00
Clemens Schwaighofer
a6918bac6f
phpstan config update, move const in basic into class
...
the basic class const for self checks are class const variables now
2019-09-20 14:53:27 +09:00
Clemens Schwaighofer
9ea8364aab
phpan/phpstan clean up runs, minor update to DB\IO
...
DB\IO dbReturn method has a third parameter to set read only assoc and
not number data from the query
Install basic composer for trying out psalm
setting phpan/phpstan for basic static checking and do basic clean up on
all of the files
2019-09-18 09:25:35 +09:00