fix(phpstan): improved method validity checks and reduced error handling
Änderungen vergleichen
Dateien
19+ 5
− 1
This commit fixes several issues in different PHP files.
method_exists
checks for isActive
method in activate.php
, deactivate.php
and
toggle.php
to prevent calls to an undefined method.getTitle
method in get.php
.search.php
by using strcmp
instead of greater than comparison.phpstan-baseline.neon
, indicating reduced error
handling.implode
parameters order in Discount.php
and typecasted variable to string
before using explode
in PriceFactor.php
.getTitle
& toPriceFactor
method parameters in Discount.php
to use union types for
compatibility with different data types.Related: #18 (closed)
PCSG & QUIQQER support and DEV System - GitLab