Files
FOSSBilling/phpstan.neon
T
01612b9146 Dropped Paidsupport and Servicemembership (#3066)
* Dropped the "Paidsupport" module

* Patch to migrate existing orders and products to "custom"

* Dropped the "Servicemembership" module

* Update src/library/FOSSBilling/UpdatePatcher.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/library/FOSSBilling/UpdatePatcher.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Improve PHPStan compatibility and static analysis

Added a PHPStan ignore pattern for polyfilled ctype function parameter count errors. Updated Extension Service to explicitly check variable type before calling ctype_alnum, aiding static analysis tools like PHPStan.

* Remove polyfill-php72 and update dependencies

Removed 'symfony/polyfill-php72' from composer.json replace section. Updated composer.lock with new versions of league/csv, php-debugbar/php-debugbar, phpunit/php-code-coverage, and rector/rector.

* Update `last_patch` setting to version 47

Incremented the 'last_patch' value in the settings table from 46 to 47 to reflect the latest patch version.

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-27 22:42:37 +00:00

44 lines
2.0 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\.$#'
# PHPStan occasionally gets confused by polyfilled ctype functions
- '#^Function ctype_alnum invoked with 1 parameter, 0 required\.$#'