Update the comments of the method createQueryTo in ActiveRecordFactory so that the IDE can automatically identify the specific class of ActiveRecord #852
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.
|