You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on the Piggy WordPress plugin, and I receive an error when calling this static method:
/** * Update a contact. * * @throws RouteException On error. * @param \WP_REST_Request $request Request object. * @return \WP_REST_Response */protectedfunctionget_route_update_response(WP_REST_Request$request) {
// This throws$attributes_list = CustomAttribute::list(["entity" => "contact"]);
}
The logs are as follows:
[04-Jul-2024 13:33:15 UTC] PHP Notice: Undefined property: stdClass::$id in /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/StaticMappers/CustomAttributes/GroupMapper.php on line 13
[04-Jul-2024 13:33:15 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Piggy\Api\Models\CustomAttributes\Group::__construct() must be of the type int, null given, called in /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/StaticMappers/CustomAttributes/GroupMapper.php on line 16 and defined in /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/Models/CustomAttributes/Group.php:27
Stack trace:
#0 /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/StaticMappers/CustomAttributes/GroupMapper.php(16): Piggy\Api\Models\CustomAttributes\Group->__construct(NULL, 'profile', 1, NULL)
#1 /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/StaticMappers/CustomAttributes/CustomAttributeMapper.php(15): Piggy\Api\StaticMappers\CustomAttributes\GroupMapper::map(Object(stdClass))
#2 /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/StaticMappers/CustomAttributes/CustomAttributesMapper.php(12): Piggy\Api\StaticMappers\CustomAttributes\CustomAttributeMapper::map(Object(st in /Users/jayden/Code/piggy/apps/plugin/vendor/piggy/piggy-php-sdk/src/Models/CustomAttributes/Group.php on line 27
I'm running this version of the SDK: "piggy/piggy-php-sdk": "^3.5"
The text was updated successfully, but these errors were encountered:
I'm working on the Piggy WordPress plugin, and I receive an error when calling this static method:
The logs are as follows:
I'm running this version of the SDK:
"piggy/piggy-php-sdk": "^3.5"
The text was updated successfully, but these errors were encountered: