Skip to content

set_value does not work with NULL as second parameter #2935

Description

@crustamet

Hello. im getting this error

Argument 2 passed to set_value() must be of the type string, null given, called in

Yes i know it needs a string but in my database i have a lot of NULL values in columns.
This worked in Codeigniter 3, if it was null it just didn't do anything.

I have to make if case for each input values just to check if it is null or not just to make it work like seriously ?

I am just asking if you guys let it like this forever or it will be changed in near future.

While $item comes from Database and it is a NULL value.

set_value('button', $item['button']);

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