Welcome Guest, Not a member yet? Register   Sign In
Request for Help: CodeIgniter 3 to 4 Migration
#4

The following return types are supported

int
float
bool
string
array
callable
interfaces
object (PHP 7.2+)

You can also declare a nullable return type by putting a question mark in front of the return data type.

PHP Code:
public function foo(): ?int {
    // ...
    return bar;

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Request for Help: CodeIgniter 3 to 4 Migration - by InsiteFX - 04-05-2025, 11:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB