The PHPStan steps run a long time for the latest runs and I suspect that
this may be because of a bad cache, possibly includeing:
```
Result cache was not saved because of non-ignorable exception: Syntax error, unexpected } on line 378
``` .
This change should only save the cache if the run was successful or if no cache
was loaded. The possibly preserves a cache that still reduces the run time.
For instance, the following got an empty cache, saved at 2024-01-19T21:28:22.18Z.
- https://github.com/Dolibarr/dolibarr/actions/runs/7589384926
That was an aborted run:
- https://github.com/Dolibarr/dolibarr/actions/runs/7589372703/job/20673878193
So I added `cancelled()` to avoid overwriting valid cache and phpstan cache
will only be written if the outcome was success or if the cache could not
be loaded before.
I also updated the version for the cache action.
htdocs/product/card.php 578 Property CommonObject::$barcode_type (int) does not accept array|string.
htdocs/product/card.php 820 Property CommonObject::$barcode_type (int) does not accept array|string.
htdocs/salaries/class/salary.class.php 317 Property Salary::$fk_user (int) does not accept string.
htdocs/salaries/class/salary.class.php 325 Property Salary::$fk_bank (int) does not accept string.
htdocs/salaries/class/salary.class.php 326 Property Salary::$fk_user_author (int) does not accept string.
htdocs/salaries/class/salary.class.php 327 Property Salary::$fk_user_modif (int) does not accept string.
htdocs/reception/card.php 617 Property CommandeFournisseurDispatch::$id (int) does not accept array|string.
htdocs/reception/card.php 659 Property CommandeFournisseurDispatch::$id (int) does not accept array|string.
htdocs/reception/card.php 660 Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept array|string.
htdocs/reception/card.php 685 Property CommandeFournisseurDispatch::$id (int) does not accept array|string.
htdocs/public/project/suggestconference.php 259 Property Societe::$country_id (int) does not accept array|string.
htdocs/public/project/suggestconference.php 260 Property CommonObject::$state_id (int) does not accept array|string.
htdocs/public/project/suggestbooth.php 258 Property Societe::$country_id (int) does not accept array|string.
htdocs/public/project/suggestbooth.php 259 Property CommonObject::$state_id (int) does not accept array|string.
htdocs/public/project/new.php 231 Property Societe::$country_id (int) does not accept array|string.
htdocs/public/project/new.php 232 Property CommonObject::$state_id (int) does not accept array|string.
htdocs/public/partnership/new.php 275 Property Societe::$country_id (int) does not accept array|string.
htdocs/public/partnership/new.php 276 Property CommonObject::$state_id (int) does not accept array|string.
htdocs/public/partnership/new.php 303 Property Societe::$country_id (int) does not accept array|string.
htdocs/public/partnership/new.php 312 Property CommonObject::$state_id (int) does not accept array|string.
htdocs/projet/stats/index.php 86 Property Stats::$year (int) does not accept array|string.
htdocs/projet/stats/index.php 204 Property Stats::$year (int) does not accept array|string.