Fix: PHPdoc and minor code changes from phpstan logs #1696
Annotations
2 errors and 2 warnings
Run Phan analysis
Process completed with exit code 1.
|
Add results to PR
Process completed with exit code 1.
|
Add results to PR:
htdocs/core/class/CMailFile.class.php#L734
CMailFile.class.php: PhanUnextractableAnnotationSuffix: Saw a token Phan may have failed to parse after '* @return negative-int|bool|string True if mail sent, false otherwise. Negative int if error in hook. String if incorrect send mode.': after negative, saw '-'
|
Add results to PR:
htdocs/core/modules/barcode/mod_barcode_product_standard.php#L164
mod_barcode_product_standard.php: PhanParamSignatureMismatch: Declaration of function getNextValue(\Product $objproduct, string $type = '') : string should be compatible with function getNextValue(\CommonObject $objproduct, string $type = '') : string defined in htdocs/core/modules/barcode/modules_barcode.class.php:69 (Expected \Product $objproduct to have the same type as \CommonObject $objproduct or a supertype)
|
Loading