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

Allow nullable constructor arguments. #24

Merged
merged 1 commit into from
Apr 26, 2022
Merged

Allow nullable constructor arguments. #24

merged 1 commit into from
Apr 26, 2022

Conversation

robwasripped
Copy link
Contributor

isset() does not behave as expected for null values in an array. This commit swaps the usages of isset() for array_key_exists() to allow for null values to be accepted as input for constructor args.

PS: This library has been fantastic for my needs, I really appreciate it!

isset() does not behave as expected for null values in an array.
This commit swaps the usages of isset() for array_key_exists() to
allow for null values to be accepted as input for constructor args.
@DavidBadura
Copy link
Owner

You are absolutely right 👍 Thank you very much!

@DavidBadura DavidBadura merged commit 53f1998 into DavidBadura:master Apr 26, 2022
@robwasripped robwasripped deleted the allow-null-properties branch April 26, 2022 15:36
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.

2 participants