friendica-github/.phpstan.neon

42 lines
979 B
Text
Raw Normal View History

# SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
#
# SPDX-License-Identifier: CC0-1.0
parameters:
2024-12-01 20:46:04 +00:00
level: 2
paths:
2024-12-07 14:40:10 +00:00
# - addon/
- src/
2024-11-23 23:06:45 +00:00
excludePaths:
analyse:
2024-11-28 12:39:26 +00:00
- addon/*/lang/*
2024-11-23 23:06:45 +00:00
- addon/*/vendor/*
- addon/pumpio/oauth/*
2024-11-23 23:06:45 +00:00
scanDirectories:
- mod
- static
- vendor
- view
dynamicConstantNames:
- DB_UPDATE_VERSION
ignoreErrors:
-
# Ignore missing GdImage class in PHP <= 7.4
message: '(^Property .+ has unknown class GdImage as its type\.$)'
path: src
-
# Ignore missing IMAP\Connection class in PHP <= 8.0
message: '(^Method .+ has invalid return type IMAP\\Connection\.$)'
path: src
-
# Ignore missing IMAP\Connection class in PHP <= 8.0
message: '(^Parameter .+ has invalid type IMAP\\Connection\.$)'
path: src