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
68 lines
2.1 KiB
Plaintext
68 lines
2.1 KiB
Plaintext
# PHP Stan Config
|
|
includes:
|
|
- phpstan-conditional.php
|
|
parameters:
|
|
tmpDir: /tmp/phpstan-corelibs
|
|
level: 8 # max is now 9
|
|
checkMissingCallableSignature: true
|
|
paths:
|
|
- %currentWorkingDirectory%/www
|
|
bootstrapFiles:
|
|
- %currentWorkingDirectory%/phpstan-bootstrap.php
|
|
# - %currentWorkingDirectory%/www/lib/autoloader.php
|
|
- %currentWorkingDirectory%/www/vendor/autoload.php
|
|
scanDirectories:
|
|
- www/lib/Smarty
|
|
scanFiles:
|
|
- www/configs/config.php
|
|
- www/configs/config.master.php
|
|
# if composer.json autoloader defined, this is not needed
|
|
# - www/lib/autoloader.php
|
|
- www/vendor/autoload.php
|
|
- www/lib/Smarty/Autoloader.php
|
|
excludePaths:
|
|
# do not check old qq file uploader tests
|
|
- www/admin/qq_file_upload_*.php
|
|
# ignore all test files
|
|
- www/admin/class_test*php
|
|
- www/admin/error_test.php
|
|
# admin synlink files
|
|
- www/admin/edit_*.php
|
|
# ignore admin header stuff
|
|
# - www/includes/admin_header.php # ignore the admin include stuff
|
|
- www/includes/admin_footer.php # ignore the admin include stuff
|
|
# deprecated files
|
|
- www/includes/admin_set_paths.php # ignore the admin include stuff
|
|
- www/includes/admin_smarty.php # ignore the admin include stuff
|
|
# folders with data no check needed
|
|
- www/templates_c
|
|
- www/cache
|
|
- www/log
|
|
- www/media
|
|
- www/tmp
|
|
# external libs are not checked
|
|
- www/lib/Smarty/
|
|
- www/lib/smarty-*/
|
|
# ignore composer
|
|
- www/vendor
|
|
# temp ignore smarty 4
|
|
- www/lib/CoreLibs/Template/SmartyExtend4.php
|
|
- www/admin/class_test.smarty4.php
|
|
# ignore errores with
|
|
ignoreErrors:
|
|
- # this error is ignore because of the PHP 8.0 to 8.1 change for pg_*
|
|
message: "#^Parameter \\#1 \\$(result|connection) of function pg_\\w+ expects resource(\\|null)?, object\\|resource(\\|bool)? given\\.$#"
|
|
path: %currentWorkingDirectory%/www/lib/CoreLibs/DB/SQL/PgSQL.php
|
|
# this is ignored for now
|
|
# - '#Expression in empty\(\) is always falsy.#'
|
|
# -
|
|
# message: '#Reflection error: [a-zA-Z0-9\\_]+ not found.#'
|
|
# path: www/includes/edit_base.php
|
|
#- 'error regex'
|
|
#-
|
|
# message: 'error regex'
|
|
# path: %currentWorkingDirectory%/www/some/*
|
|
# paths:
|
|
# - ...
|
|
# - ...
|