Geoff Taylor and GitHub
684732aa0d
perf: Migrate type descriptions to lazy lambdas ( #1005 )
...
* perf: Migrate type descriptions to lazy lambdas
Convert all eager description strings from:
'description' => __( '...', 'wp-graphql-woocommerce' ),
to deferred lambdas:
'description' => static function () { return __( '...', 'wp-graphql-woocommerce' ); },
This defers the __() translation call until the description is actually
needed (e.g. during schema introspection), avoiding unnecessary
translation overhead on every GraphQL request. Mirrors the pattern
used in WPGraphQL core.
1206 descriptions converted across 169 files.
* chore: Linter compliances met
2026-03-30 23:37:51 -04:00
Dovid Levine and GitHub
e96236696f
chore: bump deps to meet actual requirements and lint for WPCS 3.0 ( #816 )
...
* chore: bump min versions to actual and update deps
* chore: fix multiple empty lines at EOF
* chore: preincrement when standalone (phpcs)
* fix: use `printf` instead of `echo sprintf` [phpcs]
* chore: avoid lonely `if()` in `else{}` [phpcs]
* chore: avoid reserved keywords as param names [phpcs]
* chore: remove unused callback params [phpcs]
* chore: remove more unused callback params [phpcs]
* chore: apply lints to tests
* chore: update ruleset for PHPCS 3.0
* texts: restore $last_request_headers
2023-11-30 08:41:32 -05:00
f583628199
chore: implement WPGraphQL Coding Standards ( #769 )
...
* chore: avoid magic constants [PHPCS]
* chore: change ruleset to wp-graphql-cs and lint
* devops: HPOS added back to CI with the release of WC 3.9
---------
Co-authored-by: Geoff Taylor <geoff@axistaylor.com >
2023-07-19 17:11:25 -04:00
Dovid Levine and GitHub
4ed9cb94da
chore: use fully-qualified class names for PHPDoc types ( #767 )
...
* fix!: update deps to required versions
* chore: use fqcn for PHPDoc types
* chore: cleanup use statements
2023-07-19 16:01:50 -04:00
Dovid Levine and GitHub
d4927b9637
fix: use static closures when possible ( #764 )
...
* fix!: update deps to required versions
* fix: use static closures when possible
2023-07-19 15:56:42 -04:00
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
Geoffrey K Taylor and GitHub
27d9297494
feat: payment method mutations and fields implemented. ( #735 )
...
* feat: payment method mutation implemented.
* devops: Unit test updated.
* chore: WPCS compliance met.
2023-04-20 17:33:58 -04:00