HEX
Server: Apache
System: Linux host17.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User: shrsglobal (7178)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //home/shrsglobal/www/wp-content/plugins/woocommerce/vendor/wordpress/mcp-adapter/phpstan.neon.dist
parameters:
		# Rules
		treatPhpDocTypesAsCertain: false
		inferPrivatePropertyTypeFromConstructor: true
		checkExplicitMixedMissingReturn: true
		checkFunctionNameCase: true
		checkInternalClassCaseSensitivity: true
		checkTooWideReturnTypesInProtectedAndPublicMethods: true
		polluteScopeWithAlwaysIterableForeach: false
		polluteScopeWithLoopInitialAssignments: false
		reportAlwaysTrueInLastCondition: true
		reportStaticMethodSignatures: true
		reportWrongPhpDocTypeInVarTag: true

		# Configuration
		level: 8
		phpVersion:
			min: 70400
			max: 80400
		bootstrapFiles:
			- mcp-adapter.php
			- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
		paths:
			- includes/
		scanFiles:
			# These are needed due config.platform.php being 7.4 in composer.json and wordpress-stubs not including polyfills.
			# See <https://github.com/php-stubs/wordpress-stubs/issues/100>.
			- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_contains.php
			- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_starts_with.php
		scanDirectories:
			- ../abilities-api
		excludePaths:
			analyse:
				- tests/
				- vendor/
			analyseAndScan:
				- node_modules (?)

		ignoreErrors:
			- # TODO: These are too noisy, we'll restore them in the future.
				identifier: missingType.iterableValue