parameters:
	level: 5
	scanDirectories:
		- lam/lib
		- lam/templates
	paths:
		- lam/lib
		- lam/templates
	fileExtensions:
	    - php
	    - inc
	excludePaths:
		analyse:
			- */3rdParty/*
			# phpstan cannot ignore unknown class errors, skip these files
			- lam/lib/persistence.inc
			- lam/lib/modules/freeRadius.inc
			- lam/lib/modules/shadowAccount.inc
			- lam/lib/modules/windowsUser.inc
		analyseAndScan:
			- lam/templates/config/job*.php (?)
			- lam/templates/lists/changePassword.php (?)
			- lam/templates/selfService/*.php (?)
			- lam/lib/cron.inc (?)
			- lam/lib/database.inc (?)
			- lam/lib/env.inc (?)
			- lam/lib/jobs.inc (?)
			- lam/lib/passwordExpirationJob.inc (?)
			- lam/lib/modules/groupOfMembers.inc (?)
			- lam/lib/modules/groupOfNames.inc (?)
			- lam/lib/modules/groupOfNamesUser.inc (?)
			- lam/lib/modules/groupOfUniqueNames.inc (?)
			- lam/lib/modules/guacamole.inc (?)
			- lam/lib/modules/heimdalKerberos.inc (?)
			- lam/lib/modules/mitKerberos.inc (?)
			- lam/lib/modules/mitKerberosStructural.inc (?)
			- lam/lib/modules/qmailUser.inc (?)
			- lam/lib/modules/passwordSelfReset.inc (?)
			- lam/lib/modules/ppolicyUser.inc (?)
			- lam/lib/modules/lastBind.inc (?)
			- lam/lib/modules/locking389ds.inc (?)
			- lam/lib/modules/rfc2307bisPosixGroup.inc (?)
			- lam/lib/plugins/extendedInvalidCredentials/Locking389DsExtraInvalidCredentialsProvider.inc (?)
			- lam/lib/plugins/extendedInvalidCredentials/MitKerberosExtraInvalidCredentialsProvider.inc (?)
	ignoreErrors:
		- '#Variable \$helpArray might not be defined.#'
		- '#Offset .SID. on array.*in isset\(\) always exists.*#'
		- '#Offset .preferred_username. does not exist on.*#'
		- '#Strict comparison using !== between non-empty-list.*will always evaluate to true.*#'
		- '#Strict comparison using !== between non-empty-array.*will always evaluate to true.*#'
		- '#.*class LAM\\JOB\\.* not found.*#'
		- '#.*class LAM\\ENV\\.* not found.*#'
		- '#.*class LAM\\DB\\CronDatabase.* not found.*#'
		- '#Call to .*method .* on an unknown class LAM\\ENV\\.*#'
		- '#Call to .*method .* on an unknown class LAM\\JOB\\.*#'
		- '#Call to .*method .* on an unknown class LAM\\DB\\CronDatabase.*#'
		- '#.* has invalid type LAM\\ENV\\.*#'
		- '#.* has invalid type LAM\\DB\\.*#'
		- '#.* has invalid return type LAM\\JOB\\.*#'
		- '#Call to an undefined method baseModule::getBackupEmail\(\).#'
		- '#Call to an undefined method baseModule::getMembers\(\).#'
		- '#Call to an undefined method baseModule::getNextGIDs\(\).#'
		- '#Call to an undefined method baseModule::setExpirationDate\(\).#'
		- '#.*accountContainer::getAccountModule\(\) expects class-string\<baseModule\>, string given.*#'
