Skip to content

PHPStan: correct includes/*.php #65

Closed

Description

@kraftbj
		-
			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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions