Qual: Enable phan on modulebuilder #5683
ci.yml
on: pull_request
gh-travis
/
gh-travis
Matrix: phpstan / php-stan
Waiting for pending jobs
Matrix: windows-ci / win-test
Waiting for pending jobs
Annotations
6 errors and 6 warnings
phan / Run phan:
htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L96
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
|
phan / Run phan:
htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L109
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
|
phan / Run phan:
htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L125
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
|
phan / Run phan:
htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L135
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
|
phan / Run phan
Process completed with exit code 1.
|
phan / Run phan
Process completed with exit code 1.
|
pre-commit / pre-commit
Cache save failed.
|
phan / Run phan:
htdocs/modulebuilder/index.php#L230
index.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($langs) is $langs of type null but \User::getFullName() takes \Translate (no real type) defined at htdocs/core/class/commonpeople.class.php:73 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
|
phan / Run phan:
htdocs/modulebuilder/index.php#L230
index.php: PhanUndeclaredVariable: Variable $langs is undeclared (Did you mean (global $langs))
|
phan / Run phan:
htdocs/modulebuilder/index.php#L2173
index.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($resultset) is $checkTable of type true but \DoliDB::num_rows() takes \SQLite3Result|\mysqli_result|resource (no real type) defined at htdocs/core/db/Database.interface.php:311 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
|
phan / Run phan:
htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php#L193
mymodulewidget1.php: PhanParamSignatureMismatch: Declaration of function showBox(?array{text?:string,sublink?:string,subpicto:?string,nbcol?:int,limit?:int,subclass?:string,graph?:string} $head = null, ?array{tr?:string,td?:string,target?:string,text?:string,text2?:string,textnoformat?:string,tooltip?:string,logo?:string,url?:string,maxlength?:string}[][] $contents = null, int $nooutput = 0) : ?string should be compatible with function showBox(array{text?:string,sublink?:string,subpicto:?string,nbcol?:int,limit?:int,subclass?:string,graph?:string} $head, array{tr?:string,td?:string,target?:string,text?:string,text2?:string,textnoformat?:string,tooltip?:string,logo?:string,url?:string,maxlength?:string}[][] $contents, int $nooutput = 0) : string defined in htdocs/core/boxes/modules_boxes.php:227
|
phan / Run phan:
htdocs/modulebuilder/template/core/modules/mymodule/mod_myobject_standard.php#L87
mod_myobject_standard.php: PhanParamSignatureMismatch: Declaration of function canBeActivated(\MyObject $object) : bool should be compatible with function canBeActivated(\CommonObject $object) : bool defined in htdocs/core/class/commonnumrefgenerator.class.php:139 (Expected \MyObject $object to have the same type as \CommonObject $object or a supertype)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
phan-srcrt
Expired
|
1.09 KB |
|
precommit-logs
|
543 Bytes |
|