Skip to content
Code-Schnipsel Gruppen Projekte

fix(phpstan): code improvements and resolve warnings

Zusammengeführt Henning Leutz schlägt vor, next-2.x in main zu mergen.
10 Dateien
+ 26
93
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
Dateien
10
  • Reviewed code and made several improvements which provide better error handling, code quality, and
    resolved warnings. The changes include:
    - Syntax modifications for better readability,
    - Ensured variable type checks before using methods,
    - Resolved warning instances in phpstan,
    - Adapted code to comply with modern PHP nullable type indicator.
    
    Alongside, made version update in phive/phars.xml. Also, unnecessary comments or instances are
    removed for a cleaner code.
    
    Related: #16
+ 1
1
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="1.11.8" installed="1.11.8" location="./tools/phpstan" copy="false"/>
<phar name="phpstan" version="1.*" installed="1.12.13" location="./tools/phpstan" copy="false"/>
<phar name="phpunit" version="^10.5.20" installed="10.5.20" location="./tools/phpunit" copy="false"/>
<phar name="phpcs" version="^3.10.1" installed="3.10.1" location="./tools/phpcs" copy="false"/>
<phar name="phpcbf" version="^3.10.1" installed="3.10.1" location="./tools/phpcbf" copy="false"/>