Welcome Guest, Not a member yet? Register   Sign In
Using ::class in Model's $returnType instead of string - bad?
#3

Actually, the Model Generator creates the return types using the "::class" syntax:
PHP Code:
$return '\\' trim($return'\\') . '::class';
$this->call('make:entity'array_merge([$baseClass], $this->params)); 

See https://github.com/codeigniter4/CodeIgni...#L126-L127
Reply


Messages In This Thread
RE: Using ::class in Model's $returnType instead of string - bad? - by paulbalandan - 06-15-2022, 07:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB