We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.3
4.4.5
Composer (using codeigniter4/appstarter)
codeigniter4/appstarter
Linux
cli-server (PHP built-in webserver)
MySQL
Database function getCustomRowObject declared return types as @return array|null but must return object as custom class instance
getCustomRowObject
@return array|null
object
custom class instance
Definition placed in system/Database/ResultInterface.php
system/Database/ResultInterface.php
Return type must be an object of custom class instance
No response
The text was updated successfully, but these errors were encountered:
ResultInterface-getCustomRowObject()
Yes, the return type is an object. https://codeigniter4.github.io/CodeIgniter4/database/results.html#custom-result-objects
I sent a PR to fix: #8503
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
PHP Version
8.3
CodeIgniter4 Version
4.4.5
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
cli-server (PHP built-in webserver)
Database
MySQL
What happened?
Database function
getCustomRowObject
declared return types as@return array|null
but must returnobject
ascustom class instance
Steps to Reproduce
Definition placed in
system/Database/ResultInterface.php
Expected Output
Return type must be an
object
ofcustom class instance
Anything else?
No response
The text was updated successfully, but these errors were encountered: