Use func_num_args() to determine if $return should be used for Database\Model #30

Merged
vlw merged 1 commit from refs/pull/30/head into master 2026-02-22 14:41:41 +01:00
vlw commented 2026-02-22 14:40:47 +01:00 (Migrated from codeberg.org)

It was not possible to set the return type explicitly as null, since that was the value we checked for if we should return the value of $return or not. We're not checking the total amount of arguments provided to check if a $return value was passed or not.

It was not possible to set the return type explicitly as `null`, since that was the value we checked for if we should return the value of `$return` or not. We're not checking the total amount of arguments provided to check if a `$return` value was passed or not.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/scaffold!30
No description provided.