Files
4ef46acd15 chore: setup PHPStan (#746)
* chore: setup PHPStan

* chore: General code cleanup for PHPStan

* chore: PHPStan to level 2

* chore: PHPStan to level 2

* fix: Syntax error fixed.

* devops: PHPStan level 2 reached.

* devops: PHPStan level 3 passed

* devops: PHPStan level 4 passed

* chore: fix bad typehints from jwt-auth [phpstan]

* chore: simplify conditional logic in WC_Terms::register_connections()

* chore: add stubs for WP type properties.

* fix: check for valid WC_Order_Item before caching order.

* chore: lint

* devops: PHPStan level 6 passed.

* chore: Linter compliance met.

* chore: simplify logic and check for valid term.

* fix: ensure valid types (partial)

* chore: [phpcs] allow inline type annotations

* devops: PHPStan level 8 reached.

* devops: More stability fixes.

* fix: general bugfixes and improvements

* devops: Code Quality GA script added.

* devops: Linter compliance met & 2 "phpstan-ignore" statements set.

* devops: PHPStan config and CI script fixed.

* fix: "cartItem" query resolution refactored

* devops: GA scripts updated.

* chore: Simple copy changes

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2023-06-13 16:17:02 -04:00

22 lines
719 B
PHP

<?php
/**
* @property string $graphql_single_name
* @property string $graphql_plural_name
* @property bool $show_in_graphql
* @property 'interface'|'object'|'union' $graphql_kind
* @property ?callable $graphql_resolve_type
* @property array $graphql_connections
* @property string[] $graphql_exclude_connections
* @property string[] $graphql_interfaces
* @property string[] $graphql_exclude_interfaces
* @property string[] $graphql_union_types
* @property bool $graphql_register_root_field
* @property bool $graphql_register_root_connection
* @property string[] $graphql_exclude_mutations
* @property array $graphql_fields
* @property string[] $graphql_exclude_fields
*/
final class WP_Post_Type {
}