12 Commits
Author SHA1 Message Date
506d352292 fix: downloadsRemaining returns null for numeric string values (#1000)
* fix: downloadsRemaining returns null for valid numeric string values

Use is_numeric() + intval() instead of 'integer' === gettype() to handle
cases where WooCommerce stores downloads_remaining as a numeric string.
Mirrors WooCommerce's own approach in its download templates.

Co-authored-by: Nestor Vera <hacknug@users.noreply.github.com>
Closes #937

* fix: Match CI phpcov php-code-coverage version to Docker container

The Docker container uses php-code-coverage 9.2.x which serializes
coverage with v9 classes (e.g. Xdebug3Driver). phpcov v9 bundles
php-code-coverage v11 with different classes, causing
__PHP_Incomplete_Class errors. Pin to phpcov v8 + php-code-coverage v9
to match the Docker environment.

---------

Co-authored-by: Nestor Vera <hacknug@users.noreply.github.com>
2026-03-26 23:03:30 -04:00
962410d265 fix: add model classes to type configs to better support query analyzer ID tracking (#874)
* - remove several fields that are already registered by core when the post type is mapped to the schema

* devops: Tests updated and coupon "salt" restored

* chore: Linter & PHPStan compliance met

* chore: Linter & PHPStan compliance met

* devops: "self" replaced with "static" in cli tests

* chore: fix cleanup after rebasing

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2024-08-06 18:54:18 -04:00
Geoff Taylor 449d3b1674 "typeId" fields replaced by "databaseId". 2020-09-16 16:32:14 -04:00
Geoff TaylorandGeoff Taylor 7fa4603a9b new test added. 2020-05-11 21:24:34 -04:00
Geoff Taylor c63679430a Customer to DownloadableItems connection implemented 2020-02-19 16:18:05 -05:00
Geoff Taylor bd93f4d4c6 Customer jwt fields test implemented. 2019-10-16 00:57:20 -04:00
Geoff Taylor 8025de7667 "MetaData" type and queries implemented and tested. 2019-08-21 15:10:16 -04:00
Geoff Taylor 880e463150 VariationAttributeQueriesTest implemented. "to_relay_id" added to helpers. 2019-04-30 15:43:48 -04:00
Geoff Taylor 9cdcf01e04 CustomerQueriesTest updated. Where arguments added to Customer connections. 2019-04-24 19:33:03 -04:00
Geoff Taylor e57ff7afb0 OrderQueriesTest refactored. OrderBy arg "orderNumber" changed to "orderKey". 2019-04-15 23:24:54 -04:00
Geoff Taylor 2d180ca8c8 customer, product, and coupon tests refactored 2019-04-06 01:18:44 -04:00
Geoff Taylor 393aadf823 initial commit 2019-04-05 14:46:59 -04:00