Skip to content

Fix: PHPdoc and minor code changes from phpstan logs #1696

Fix: PHPdoc and minor code changes from phpstan logs

Fix: PHPdoc and minor code changes from phpstan logs #1696

Triggered via pull request March 11, 2024 21:57
Status Failure
Total duration 3m 30s
Artifacts 1

phan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
Run phan
Process completed with exit code 1.
Run phan
Process completed with exit code 1.
Run phan: 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 '-'
Run phan: 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)

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
655 Bytes