Skip to content

Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #851

Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord

Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #851

Triggered via pull request December 19, 2023 14:14
@niqingyangniqingyang
synchronize #280
master
Status Failure
Total duration 35s
Artifacts

static.yml

on: pull_request
Matrix: mutation
Fit to window
Zoom out
Zoom in

Annotations

11 errors
PHP 8.1-ubuntu-latest: src/ActiveQuery.php#L974
MoreSpecificReturnType: The declared return type 'Yiisoft\ActiveRecord\ActiveRecordInterface' for Yiisoft\ActiveRecord\ActiveQuery::getARInstance is more specific than the inferred return type 'object'
PHP 8.1-ubuntu-latest: src/ActiveQuery.php#L977
LessSpecificReturnStatement: The type 'object' is more general than the declared return type 'Yiisoft\ActiveRecord\ActiveRecordInterface' for Yiisoft\ActiveRecord\ActiveQuery::getARInstance
PHP 8.1-ubuntu-latest: src/ActiveQuery.php#L977
ArgumentTypeCoercion: Argument 1 of Yiisoft\ActiveRecord\ActiveRecordFactory::createAR expects class-string, but parent type string provided
PHP 8.1-ubuntu-latest: src/ActiveRecordFactory.php#L36
MismatchingDocblockReturnType: Docblock has incorrect return type 'T:fn-yiisoft\activerecord\activerecordfactory::createar as object', should be 'Yiisoft\ActiveRecord\ActiveRecordInterface'
PHP 8.1-ubuntu-latest
Process completed with exit code 1.
PHP 8-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
PHP 8-ubuntu-latest: src/ActiveQuery.php#L974
MoreSpecificReturnType: The declared return type 'Yiisoft\ActiveRecord\ActiveRecordInterface' for Yiisoft\ActiveRecord\ActiveQuery::getARInstance is more specific than the inferred return type 'object'
PHP 8-ubuntu-latest: src/ActiveQuery.php#L977
LessSpecificReturnStatement: The type 'object' is more general than the declared return type 'Yiisoft\ActiveRecord\ActiveRecordInterface' for Yiisoft\ActiveRecord\ActiveQuery::getARInstance
PHP 8-ubuntu-latest: src/ActiveQuery.php#L977
ArgumentTypeCoercion: Argument 1 of Yiisoft\ActiveRecord\ActiveRecordFactory::createAR expects class-string, but parent type string provided
PHP 8-ubuntu-latest: src/ActiveRecordFactory.php#L36
MismatchingDocblockReturnType: Docblock has incorrect return type 'T:fn-yiisoft\activerecord\activerecordfactory::createar as object', should be 'Yiisoft\ActiveRecord\ActiveRecordInterface'
PHP 8-ubuntu-latest
The operation was canceled.