Fixed PHPstan detections.

This commit is contained in:
flash 2024-12-02 02:28:08 +00:00
parent 96cc58f820
commit 3c10fb0de0
63 changed files with 289 additions and 107 deletions

View file

@ -1,9 +1,37 @@
parameters:
level: 5
paths:
- database
- src
- public
- public-legacy
bootstrapFiles:
- misuzu.php
dynamicConstantNames:
- MSZ_CLI
- MSZ_DEBUG
ignoreErrors:
-
identifier: variable.undefined
path: public-legacy/forum/posting.php
-
identifier: variable.undefined
path: public-legacy/forum/topic.php
-
identifier: variable.undefined
path: public-legacy/manage/changelog/tag.php
-
identifier: variable.undefined
path: public-legacy/manage/news/category.php
-
identifier: variable.undefined
path: public-legacy/manage/news/post.php
-
identifier: variable.undefined
path: public-legacy/manage/users/note.php
-
identifier: empty.offset
path: public-legacy/search.php
-
identifier: offsetAccess.notFound
path: public-legacy/search.php