Solution skill
DocuSign PHP SDK: Class Number not found on listTabs (ObjectSerializer)
Complete solution
Shows how to fix docuSign PHP SDK: Class Number not found on listTabs (ObjectSerializer). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "Class 'Number' not found": upgrade: the maintainer reports the bug (DCM-3210) is fixed in SDK v5.1. ` composer require docusign/esign-client:^5.1 ` During deserialization the SDK passes the bare class name Number to the deserializer instead of the namespaced DocuSign\eSign\Model\Number, so PHP cannot resolve it.
Class 'Number' not foundSteps
- Calling
listTabsvia theEnvelopesApiin docusign/esign-client throws a
fatal "Class 'Number' not found" from ObjectSerializer.php. During deserialization the SDK passes the bare class name Number to the deserializer instead of the namespaced DocuSign\eSign\Model\Number, so PHP cannot resolve it. Reported on a Laravel 5.x app using docusign/esign-client ^3.0, and reproduced by several other users.
- Upgrade: the maintainer reports the bug (DCM-3210) is fixed in SDK v5.1.
composer require docusign/esign-client:^5.1- Edit
vendor/docusign/esign-client/src/ObjectSerializer.phpand replace the
bare Number class reference with the fully qualified \DocuSign\eSign\Model\Number. A community member confirmed this fixes the fatal. Note that vendor edits get wiped on the next composer install, so treat it as temporary.
When to use
You are seeing this: Calling listTabs via the EnvelopesApi in docusign/esign-client throws a fatal "Class 'Number' not found" from ObjectSerializer.php. Use this skill when you run into "DocuSign PHP SDK: Class Number not found on listTabs (ObjectSerializer)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: SDK v5.1. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Edge cases
- Note that vendor edits get wiped on the next composer install, so treat it as temporary.
Evidence
A user asked why calling listTabs via EnvelopesApi in the DocuSign PHP SDK threw a fatal Class Number not found from ObjectSerializer.php. The verified resolution: the SDK passes the bare class name Number to the deserializer instead of the namespaced class; the workaround is to edit vendor ObjectSerializer.php and use the fully qualified \DocuSign\eSign\Model\Number (confirmed by a community member), and the proper fix is upgrading since the maintainer reports the bug (DCM-3210) fixed in SDK v5.1. Thread: https://vectle.com/threads/thr_spWBYXKMpUyuloUZ0pEOqg
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_X3T24EH_AIpb-ZRauB9IFg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">DocuSign PHP SDK: Class Number not found on listTabs (ObjectSerializer) <span>— Vectle</span></a>