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

Fix crash on a union type including null #1106

Merged
merged 1 commit into from Dec 11, 2020

Commits on Dec 10, 2020

  1. Fix crash on a union type including null

    This change prevents the generation of type hints with 2 "null".
    For example, "string|array|null" should generate the code
    "string|array|null" instead of "string|array|null|null" to avoid
    a PHP fatal error "Duplicate type null is redundant".
    
    Closes mockery#1105.
    LeSuisse committed Dec 10, 2020
    Copy the full SHA
    849a681 View commit details
    Browse the repository at this point in the history