fix(phpstan): address phpstan identified type errors and refactor code
Refactor several PHP files to fix type-related errors and potential crash scenarios. These include: - Checking if a method exists before attempting to call it - Providing alternatives for default values where a procedure may not exist - Ensuring variables are initialized properly regardless of whether procedures execute successfully or not - Casting return types to match the return type in function comments - Other significant changes to improve overall code stability and predictability. Related: #149
Übergeordneter
1f73aead
No related branches found
No related tags found
- phpstan-baseline.neon 1 Ergänzung, 45 Löschungenphpstan-baseline.neon
- src/QUI/Bricks/Brick.php 0 Ergänzungen, 2 Löschungensrc/QUI/Bricks/Brick.php
- src/QUI/Bricks/Controls/Slider/BasicSlider.php 1 Ergänzung, 1 Löschungsrc/QUI/Bricks/Controls/Slider/BasicSlider.php
- src/QUI/Bricks/Manager.php 30 Ergänzungen, 20 Löschungensrc/QUI/Bricks/Manager.php
- src/QUI/Bricks/Utils.php 44 Ergänzungen, 15 Löschungensrc/QUI/Bricks/Utils.php
Bitte registrieren oder Anmelden zum Kommentieren