2021-05-12 14:00:25 +00:00
parameters:
tmpDir: build/phpstan
2021-05-14 17:59:35 +00:00
level: 6
2021-05-12 14:00:25 +00:00
paths:
- app
2021-05-18 17:16:36 +00:00
- tests
2021-05-12 14:00:25 +00:00
bootstrapFiles:
- vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php
scanDirectories:
- app/Helpers
2021-08-23 11:05:16 +00:00
- modules/Analytics/Helpers
- modules/Fediverse/Helpers
2021-05-12 14:00:25 +00:00
- vendor/codeigniter4/codeigniter4/system/Helpers
- vendor/myth/auth/src/Helpers
excludes_analyse:
- app/Libraries/Router.php
- app/Views/*
2021-08-27 10:58:22 +00:00
- modules/*/Views/*
2021-09-02 16:34:25 +00:00
- themes/*
2021-05-12 14:00:25 +00:00
ignoreErrors:
2021-05-14 17:59:35 +00:00
- '#This property type might be inlined to PHP. Do you have confidence it is correct\? Put it here#'
2021-05-12 14:00:25 +00:00
- '#^Cognitive complexity for#'
- '#Do not use chained method calls. Put each on separated lines.#'
- '#Do not inherit from abstract class, better use composition#'
- '#Cannot access property [\$a-z_]+ on ((array\|)?object)#'
- '#^Call to an undefined method CodeIgniter\\Database\\BaseBuilder#'
- '#^Call to an undefined method CodeIgniter\\Database\\ConnectionInterface#'
2021-05-18 17:16:36 +00:00
- '#Function \"preg_.*\(\)\" cannot be used/left in the code#'
- '#Function "property_exists\(\)" cannot be used/left in the code#'
2021-08-11 15:47:23 +00:00
- '#Instead of "instanceof/is_a\(\)" use ReflectionProvider service or "\(new ObjectType\(<desired_type\>\)\)\-\>isSuperTypeOf\(<element_type\>\)" for static reflection to work#'
2021-11-01 17:12:03 +00:00
- '#^Access to an undefined property App\\Entities\\Image#'
2021-05-12 14:00:25 +00:00
-
message: '#Function "function_exists\(\)" cannot be used/left in the code#'
paths:
- app/Helpers
2021-09-02 16:34:25 +00:00
- app/Common.php
2021-09-10 16:02:25 +00:00
- app/Libraries/ViewComponents/Helpers