Skip to content

Bug: DB result function incorrect result declaration #8501

Description

@Turecky

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 return object as custom class instance

Steps to Reproduce

Definition placed in system/Database/ResultInterface.php

Expected Output

Return type must be an object of custom class instance

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions