Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan: correct includes/*.php #65

Open
kraftbj opened this issue Mar 4, 2025 · 0 comments
Open

PHPStan: correct includes/*.php #65

kraftbj opened this issue Mar 4, 2025 · 0 comments

Comments

@kraftbj
Copy link
Collaborator

kraftbj commented Mar 4, 2025

		-
			message: '#^Constant ACF_VERSION not found\.$#'
			identifier: constant.notFound
			count: 3
			path: ../includes/blocks.php

		-
			message: '#^Access to an undefined property ACF_Data\:\:\$site_aliases\.$#'
			identifier: property.notFound
			count: 2
			path: ../includes/class-acf-data.php

		-
			message: '#^Access to an undefined property ACF_Data\:\:\$site_data\.$#'
			identifier: property.notFound
			count: 1
			path: ../includes/class-acf-data.php

		-
			message: '#^Action callback returns array but should not return anything\.$#'
			identifier: return.void
			count: 1
			path: ../includes/class-acf-internal-post-type.php

		-
			message: '#^Action callback returns string but should not return anything\.$#'
			identifier: return.void
			count: 1
			path: ../includes/class-acf-internal-post-type.php

		-
			message: '#^Expected 2 @param tags, found 1\.$#'
			identifier: paramTag.count
			count: 1
			path: ../includes/class-acf-internal-post-type.php

		-
			message: '#^Expected 3 @param tags, found 2\.$#'
			identifier: paramTag.count
			count: 1
			path: ../includes/class-acf-internal-post-type.php

		-
			message: '#^Action callback returns array but should not return anything\.$#'
			identifier: return.void
			count: 1
			path: ../includes/class-acf-site-health.php

		-
			message: '#^Action callback returns bool but should not return anything\.$#'
			identifier: return.void
			count: 2
			path: ../includes/class-acf-site-health.php
			message: '#^One or more @param tags has an invalid name or invalid syntax\.$#'
			identifier: phpDoc.parseError
			count: 1
			path: ../includes/l10n.php

		-
			message: '#^Function acf_add_local_fields\(\) should return array but return statement is missing\.$#'
			identifier: return.missing
			count: 1
			path: ../includes/local-fields.php

		-
			message: '#^Action callback returns bool but should not return anything\.$#'
			identifier: return.void
			count: 10
			path: ../includes/local-json.php

		-
			message: '#^Function remove_filter invoked with 4 parameters, 2\-3 required\.$#'
			identifier: arguments.count
			count: 1
			path: ../includes/local-meta.php

		-
			message: '#^Expected 2 @param tags, found 1\.$#'
			identifier: paramTag.count
			count: 2
			path: ../includes/locations.php
			message: '#^Access to an undefined property acf_loop\:\:\$loops\.$#'
			identifier: property.notFound
			count: 7
			path: ../includes/loop.php

		-
			message: '#^Method acf_loop\:\:remove_loop\(\) should return bool but return statement is missing\.$#'
			identifier: return.missing
			count: 2
			path: ../includes/loop.php

		-
			message: '#^Callback expects 1 parameter, \$accepted_args is set to 2\.$#'
			identifier: arguments.count
			count: 1
			path: ../includes/revisions.php

		-
			message: '#^Constant ACF_VERSION not found\.$#'
			identifier: constant.notFound
			count: 1
			path: ../includes/third-party.php

		-
			message: '#^Constant ACF_UPGRADE_VERSION not found\.$#'
			identifier: constant.notFound
			count: 2
			path: ../includes/upgrades.php

		-
			message: '#^Constant ACF_VERSION not found\.$#'
			identifier: constant.notFound
			count: 3
			path: ../includes/upgrades.php

		-
			message: '#^Access to an undefined property acf_validation\:\:\$errors\.$#'
			identifier: property.notFound
			count: 3
			path: ../includes/validation.php

		-
			message: '#^Access to an undefined property ACF_WPML_Compatibility\:\:\$trid_ref\.$#'
			identifier: property.notFound
			count: 1
			path: ../includes/wpml.php
kraftbj added a commit that referenced this issue Mar 7, 2025
kraftbj added a commit that referenced this issue Mar 10, 2025
* Ignore include of WP file. Fixes #50

* secure-custom-fields.php. Fixes #69

* See #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant