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

mixed should be treated as nullable #4278

Merged
merged 3 commits into from Dec 7, 2020

Conversation

TysonAndre
Copy link
Member

  • Work on fixing the false positives during redundant condition
    detection
  • Add a separate non-null-mixed type
  • TODO: Avoid regressions in inferred phpdoc type for array access
  • TODO: Continue to infer phpdoc ?mixed type with a ? in issue messages
    when combining mixed with null or converting mixed to nullable.
    (and emit PhanTypeArraySuspiciousNullable)

For #4276

- Work on fixing the false positives during redundant condition
  detection
- Add a separate `non-null-mixed` type
- TODO: Avoid regressions in inferred phpdoc type for array access
- TODO: Continue to infer phpdoc `?mixed` type with a `?` in issue messages
  when combining mixed with null or converting mixed to nullable.
  (and emit PhanTypeArraySuspiciousNullable)

For phan#4276
Update tests and implementation to handle edge cases uncovered by the
previous commit.
@TysonAndre TysonAndre changed the title WIP(broken) - mixed should be treated as nullable mixed should be treated as nullable Dec 7, 2020
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.

None yet

1 participant