Files
FOSSBilling/phpstan.neon
T
renovate[bot]andAdam Daley 23641e1dde chore(deps): update streetsidesoftware/cspell-action digest to 24fa8d3 (#3134)
* chore(deps): update streetsidesoftware/cspell-action digest to 24fa8d3

* Update PHPStan config to ignore `ctype_alnum` argument count

Added a new ignore rule in `phpstan.neon` for the 'Function ctype_alnum invoked with 1 parameter, 0 required' message in src/modules/Extension/Service.php. Minor formatting change in `phpstan-baseline.neon`.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-01-09 15:03:10 +00:00

47 lines
2.1 KiB
Plaintext

includes:
- phpstan-baseline.neon
parameters:
level: 3
paths:
- src
bootstrapFiles:
- src/load.php
excludePaths:
analyse:
- src/vendor
- src/library/Model/Admin.php
- src/library/Model/Client.php
- src/library/Model/ServiceLicense.php
- src/library/Model/Product.php
- src/library/Server/Manager/Custom.php
- src/library/Server/Manager/Whm.php
- src/data/cache (?)
universalObjectCratesClasses:
- \RedBeanPHP\SimpleModel
- \RedBeanPHP\OODBBean
ignoreErrors:
- '#^Function __trans not found\.$#'
- '#^Function __pluralTrans not found\.$#'
- '#^Inner named functions are not supported by PHPStan\. Consider refactoring to an anonymous function, class method, or a top\-level\-defined function\. See issue \#165 \(https\://github\.com/phpstan/phpstan/issues/165\) for more details\.$#'
- message: '#^Result of function header \(void\) is used\.$#'
path: src/modules/Custompages/Controller/Client.php
- message: '#^Variable \$ext_id on left side of \?\?\= is never defined\.$#'
path: src/modules/Extension/Service.php
- '#^Access to an undefined property RedBeanPHP\\SimpleModel\:\:\$updated_at\.$#'
- '#^Access to an undefined property RedBeanPHP\\SimpleModel\:\:\$pass\.$#'
- '#^Access to an undefined property RedBeanPHP\\SimpleModel\:\:\$username\.$#'
- '#^Access to an undefined property RedBeanPHP\\SimpleModel\:\:\$sld\.$#'
- '#^Access to an undefined property RedBeanPHP\\SimpleModel\:\:\$tld\.$#'
- '#^Access to an undefined property RedBeanPHP\\OODBBean\:\:\$client_id\.$#'
- '#^Access to an undefined property RedBeanPHP\\OODBBean\:\:\$config\.$#'
- '#^Access to an undefined property RedBeanPHP\\OODBBean\:\:\$api_key\.$#'
- '#^Access to an undefined property RedBeanPHP\\OODBBean\:\:\$updated_at\.$#'
- '#^Access to an undefined property RedBeanPHP\\OODBBean\:\:\$created_at\.$#'
- '#^Access to an undefined property RedBeanPHP\\OODBBean\:\:\$id\.$#'
- message: '#^Function ctype_alnum invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/modules/Extension/Service.php