You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: when the query ($this->first()) result returns NULL we get TypeError
kenjis
changed the title
Bug: when the query ($this->first()) result returns NULL we get TypeError
Bug: [Model] when the query ($this->first()) result returns NULL we get TypeError
Apr 19, 2024
PHP Version
8.1, 8.2
CodeIgniter4 Version
4.5.1
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MariaDB 10.2
What happened?
When the query result returns NULL we get TypeError
I am using CodeIgniter’s Model + Casts + return type object)
Steps to Reproduce
Run some query with
$this->first()
Expected Output
return NULL
Anything else?
No response
The text was updated successfully, but these errors were encountered: