Skip to content

Conversation

@DannyvdSluijs
Copy link
Contributor

This is a follow up on #675 deprecating the remaining classes pointed out in my description. Since the changes have been merged uncommented I've taken a leap of faith that these would be okay as well (let me know if you think differently).

Copilot summary:

This pull request includes several changes to deprecate classes with invalid naming conventions and replace them with correctly named classes. Each deprecated class now triggers a deprecation warning and extends the new class. The most important changes include the deprecation of classes such as Deleted, DocumentCategorie, DocumentsAttachment, HrmDivision, and InventoryItemWarehouse.

Deprecation of classes with invalid naming conventions:

  • src/Picqer/Financials/Exact/Deleted.php: Deprecated the Deleted class and replaced it with SyncDeleted. Added a deprecation warning. ([src/Picqer/Financials/Exact/Deleted.phpR5-L34](https://github.com/picqer/exact-php-client/pull/678/files#diff-7de890c6ea205ecc2f67f927313a614145a5b301b8b1c32e8d7bc3e293072e91R5-L34))
  • src/Picqer/Financials/Exact/DocumentCategorie.php: Deprecated the DocumentCategorie class and replaced it with DocumentCategory. Added a deprecation warning. ([src/Picqer/Financials/Exact/DocumentCategorie.phpR5-L27](https://github.com/picqer/exact-php-client/pull/678/files#diff-c65e5aa321acc813022346e486175d6a1bafe17fd3fdabe8993fe739855473cbR5-L27))
  • src/Picqer/Financials/Exact/DocumentsAttachment.php: Deprecated the DocumentsAttachment class and replaced it with CrmDocumentAttachment. Added a deprecation warning. ([src/Picqer/Financials/Exact/DocumentsAttachment.phpR5-L28](https://github.com/picqer/exact-php-client/pull/678/files#diff-8f0ba86d4c7e3b208bba60e79655922eeee8c8b101af6e1c8e64b3b68d0e23a1R5-L28))
  • src/Picqer/Financials/Exact/HrmDivision.php: Deprecated the HrmDivision class and replaced it with Division. Added a deprecation warning. ([src/Picqer/Financials/Exact/HrmDivision.phpR5-L86](https://github.com/picqer/exact-php-client/pull/678/files#diff-bf69e63038bd26c58e847931c9acc6c20c31729e9651441aa8f295c65933952dR5-L86))
  • src/Picqer/Financials/Exact/InventoryItemWarehouse.php: Deprecated the InventoryItemWarehouse class and replaced it with SyncInventoryItemWarehouse. Added a deprecation warning. ([src/Picqer/Financials/Exact/InventoryItemWarehouse.phpR5-L72](https://github.com/picqer/exact-php-client/pull/678/files#diff-9c8e05d1c24f0951e2042bd457c605107304a746834ad3144e069dfe94d046f2R5-L72))

@remkobrenters
Copy link
Collaborator

I think this is a very good step forward. The deprecation error messages are a nice cherry on top.

@stephangroen stephangroen merged commit 218bb1b into picqer:main Apr 9, 2025
2 checks passed
@DannyvdSluijs DannyvdSluijs deleted the Add-deprecations-on-incorrect-class-names branch April 9, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants