XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
87 stars 64 forks source link

Add PHPDocs for count(), getIterator(), and jsonSerialize() #345

Open mustanggb opened 5 months ago

mustanggb commented 5 months ago

Symfony is giving deprecation warnings, should be able to resolve these by adding the missing PHPDocs.

[deprecation] User Deprecated: Method "Countable::count()" might add "int" as a native return type declaration in the future. Do the same in implementation "XeroAPI\XeroPHP\Models\Accounting\Invoices" now to avoid errors or add an explicit @return annotation to suppress this message.
[deprecation] User Deprecated: Method "IteratorAggregate::getIterator()" might add "\Traversable" as a native return type declaration in the future. Do the same in implementation "XeroAPI\XeroPHP\Models\Accounting\Invoices" now to avoid errors or add an explicit @return annotation to suppress this message.
[deprecation] User Deprecated: Method "JsonSerializable::jsonSerialize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "XeroAPI\XeroPHP\Models\Accounting\Invoices" now to avoid errors or add an explicit @return annotation to suppress this message.