Skip to content
Code-Schnipsel Gruppen Projekte
Commit 357c24f1 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix(phpstan): ensure compatibility with different datatypes

This commit ensures compatibility with different datatypes by adding necessary checks and type
conversions in ERP Products module. It also removes unused comments, thus making the code cleaner
and more efficient.

Changes include:
- In methods expecting integer parameters, explicit type casting has been added to situations where
a string could be passed instead.
- Additional checks are implemented before invoking method_exists(), ensuring safety.
- Inappropriate comments and annotations have been removed to make the code more readable.
- getEditableFieldIdsForProduct() and getInheritedFieldIdsForProduct() methods in Products.php had
a generic parameter $Product, it has been type hinted with the ProductTypeInterface.

Overall, the changes ensure better type stability and increase code reliability.

Related: #397
Übergeordneter fe754b84
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!108Update 'next-3.x' with latest changes from 'main',!107refactor(phpstan): utils classes adapted to phpstan
Pipeline-Nr. 15333 fehlgeschlagen
Lade
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren