fix(phpstan): improved method validity checks and reduced error handling
- Feb 14, 2025
-
-
verfasst von Henning Leutz
Updated the 'canUsedInOrder' function in Discount.php to accept ERP Entity Interface arguments instead of Order Interfaces for better flexibility and compatibility. Added checks to ensure that the provided entity is an instance of the Order Interface, increasing robustness.
-
verfasst von Henning Leutz
This commit fixes several issues in different PHP files. - Added `method_exists` checks for `isActive` method in `activate.php`, `deactivate.php` and `toggle.php` to prevent calls to an undefined method. - Similar check added for `getTitle` method in `get.php`. - Fixed sorting functionality in `search.php` by using `strcmp` instead of greater than comparison. - Removed a large number of ignored errors in `phpstan-baseline.neon`, indicating reduced error handling. - Corrected the `implode` parameters order in `Discount.php` and typecasted variable to string before using `explode` in `PriceFactor.php`. - Updated `getTitle` & `toPriceFactor` method parameters in `Discount.php` to use union types for compatibility with different data types. Related: #18
-
- Aug 05, 2024
-
-
verfasst von Jan Wennrich
Add QUIQQER Tooling See merge request !9
-
- Aug 02, 2024
-
-
verfasst von Jan WennrichBestätigt88a4fb8e
-
verfasst von Jan WennrichBestätigt5b2f7399
-
Bestätigt07d1c375
-
verfasst von Jan WennrichBestätigt6bf22362
-
verfasst von Jan WennrichBestätigt4c27bd1e
-
verfasst von Jan WennrichBestätigt7aa93ba9
-
verfasst von Jan WennrichBestätigta4650ed1
-
verfasst von Jan WennrichBestätigt3fa692bd
-
verfasst von Jan WennrichBestätigt10334b69
-
verfasst von Jan WennrichBestätigteb90e1d4
-
verfasst von Jan WennrichBestätigt0fc53475
-