paheko-fork/tests/phpstan.neon

31 lines
1 KiB
Text
Raw Permalink Normal View History

2024-01-19 15:39:49 +00:00
parameters:
bootstrapFiles:
- phpstan.config.php
- ../src/include/init.php
level: 3
scanDirectories:
- ../src/include
- ../src/www
- ../src/scripts
excludePaths:
- ../src/include/lib/KD2
- ../src/include/lib/Parsedown.php
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Access to protected property Paheko\\Entities#'
- '#Access to an undefined property Paheko\\Entities\\Users\\User#'
- '#Access to an undefined property KD2\\DB\\AbstractEntity#'
- '#but returns KD2\\DB\\AbstractEntity#'
- '#Call to an undefined method KD2\\DB\\AbstractEntity#'
- '#Property .* does not accept KD2\\DB\\AbstractEntity#'
- '#PHPDoc#'
-
message: '#Variable \$(tpl|form|session|user|session|wiki|config|user|current_year) might not be defined#'
path: ../src/www/*
-
message: '#Constant CURRENT_YEAR_ID not found#'
path: ../src/www/admin/acc/*
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon