Skip to content

Conversation

d--j
Copy link

@d--j d--j commented Sep 19, 2024

Returning an array does not prevent the action to happen (since the array is truthy). Assigning an error message to $result and returning false is the correct way to prevent access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant