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/class/product.class.php 666 Property Product::$price_ttc (float) does not accept string.
htdocs/product/class/product.class.php 667 Property Product::$price (float) does not accept string.
htdocs/product/class/product.class.php 668 Property Product::$price_min_ttc (float) does not accept string.
htdocs/product/class/product.class.php 669 Property Product::$price_min (float) does not accept string.
htdocs/product/class/product.class.php 2404 Property Product::$price (float) does not accept string.
htdocs/product/class/product.class.php 2405 Property Product::$price_ttc (float) does not accept string.
htdocs/product/class/product.class.php 2863 Property Product::$price_ttc (float) does not accept string.
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/multicurrency/multicurrency_rate.php 149 Property CurrencyRate::$rate (float) does not accept string.
htdocs/multicurrency/multicurrency_rate.php 150 Property CurrencyRate::$rate_indirect (float) does not accept string.
htdocs/multicurrency/multicurrency_rate.php 170 Property CurrencyRate::$rate (float) does not accept string.
htdocs/loan/card.php 135 Property Loan::$fk_bank (int) does not accept array|string.
htdocs/loan/card.php 143 Property Loan::$fk_project (int) does not accept array|string.
htdocs/fourn/facture/card-rec.php 197 Property FactureFournisseurRec::$fk_project (int) does not accept array|string.
htdocs/fourn/facture/card-rec.php 389 Property CommonObjectLine::$id (int) does not accept array|string.
htdocs/core/login/functions_openid.php 62 Function check_user_password_openid() should return string but returns false.
htdocs/core/login/functions_openid.php 64 Function check_user_password_openid() should return string but returns false.
htdocs/core/login/functions_openid.php 103 Function check_user_password_openid() should return string but returns false.
htdocs/core/login/functions_openid.php 107 Function check_user_password_openid() should return string but returns false.
htdocs/core/login/functions_openid.php 112 Function check_user_password_openid() should return string but returns false.
htdocs/core/class/translate.class.php 995 Method Translate::getLabelFromKey() should return string but returns int.
htdocs/core/class/translate.class.php 1032 Method Translate::getLabelFromKey() should return string but returns int.