Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return $this if the callback does not return anything #5

Closed
devmoath opened this issue Nov 9, 2021 · 0 comments
Closed

return $this if the callback does not return anything #5

devmoath opened this issue Nov 9, 2021 · 0 comments
Assignees
Labels
bug Something isn't working feature New feature or request

Comments

@devmoath
Copy link
Owner

devmoath commented Nov 9, 2021

if ($value) {
    return $callback($this, $value) ?: $this;
} elseif ($default) {
    return $default($this, $value) ?: $this;
}

return $this;
@devmoath devmoath self-assigned this Nov 9, 2021
@devmoath devmoath added the feature New feature or request label Nov 9, 2021
@devmoath devmoath added the bug Something isn't working label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant