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

Bump phan/phan from 3.2.4 to 4.0.7 #39

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 3, 2021

Bumps phan/phan from 3.2.4 to 4.0.7.

Changelog

Sourced from phan/phan's changelog.

Jun 26 2021, Phan 4.0.7

Language Server/Daemon mode:

  • Fix an uncaught exception sometimes seen checking for issue suppressions when pcntl is unavailable.

Maintenance:

  • Expand allowed netresearch/jsonmapper version ranges to include ^4.0 for php 8.1 support.
  • Update dependencies in composer.lock for compatibility with php 8.1 in published phar files.

Bug fixes:

  • Don't emit PhanCompatibleNonCapturingCatch when minimum_target_php_version is '8.0' or newer. (#4433)

  • Stop ignoring @return null and @param null $paramName in phpdoc. (#4453)

    Stop special casing @param null now that Phan allows many other literal types in param types.

May 19 2021, Phan 4.0.6

New Features (Analysis):

  • Partially support php 8.1 enums (#4313) (infer the real type is the class type, that they cannot be instantiated, that enum values cannot be reused, and that class constants will exist for enum cases)

    New issue types: PhanReusedEnumCaseValue, PhanTypeInstantiateEnum, PhanTypeInvalidEnumCaseType, PhanSyntaxInconsistentEnum, PhanInstanceMethodWithNoEnumCases, PhanInstanceMethodWithNoEnumCases, PhanEnumCannotHaveProperties, PhanUnreferencedEnumCase, PhanEnumForbiddenMagicMethod.

  • Support php 7.4 covariant return types and contravariant parameter types when the configured or inferred minimum_target_php_version is '7.4' or newer (#3795)

  • Add initial support for the php 8.1 never type (in real return types and phpdoc). (#4380) Also add support for the phpdoc aliases no-return, never-return, and never-returns

  • Support casting iterable<K, V> to Traversable<K, V> with is_object or !is_array checks

  • Detect more types of expressions that never return when inferring types (e.g. when analyzing ?:, ?? operators)

  • Use php 8.1's tentative return types from reflection (hasTentativeReturnType, getTentativeReturnType) to assume real return types of internal functions/methods (#4400)

    This can be disabled by setting use_tentative_return_type to false (e.g. when using subclasses of internal classes that return incompatible types).

  • Warn about modifying properties of classes that are immutable at runtime (enums, internal classes such as \Closure and \WeakRef, etc.) (#4313) New issue type: PhanTypeModifyImmutableObjectProperty

Dead code detection:

  • Infer that functions with a return type of never (or phpdoc aliases such as no-return) are unreachable when performing control flow analysis. This can be disabled by setting dead_code_detection_treat_never_type_as_unreachable to false

    Note that control flow is only affected when UseReturnValuePlugin is enabled.

Plugins:

  • In UseReturnValuePlugin, also start warning about when using the result of an expression that evaluates to never New issue types: PhanUseReturnValueOfNever

Bug fixes:

  • As part of the work on php 7.4 contravariant parameter types, don't automatically inherit inferred parameter types from ancestor classlikes when (1) there is no @param tag with a type for the parameter on the overriding method and (2) the ancestor parameter types are a subtype of the real parameter types unless

... (truncated)

Commits
  • 2c9bb22 Merge pull request #4457 from TysonAndre/release-4.0.7
  • ae98b30 Release Phan 4.0.7
  • b551325 Merge pull request #4454 from TysonAndre/stop-ignoring-null-phpdoc-param
  • 2a647fb Stop ignoring @param null and @return null
  • 63855ec Merge pull request #4445 from frnico33/nf/upgrade-cc-dockerfile-php8
  • e633400 Change image to use php 8.0.6 alpine.
  • b27fd2e Allow jsonmapper v4
  • bae6dbd Update composer.lock
  • e8b859d Don't emit PhanCompatibleNonCapturingCatch when `minimum_target_php_version...
  • e155d71 Update appveyor php versions
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [phan/phan](https://github.com/phan/phan) from 3.2.4 to 4.0.7.
- [Release notes](https://github.com/phan/phan/releases)
- [Changelog](https://github.com/phan/phan/blob/v4/NEWS.md)
- [Commits](phan/phan@3.2.4...4.0.7)

---
updated-dependencies:
- dependency-name: phan/phan
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 3, 2021
@dependabot dependabot bot requested a review from mqwerty July 3, 2021 01:01
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 3, 2021

Looks like phan/phan is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Jul 3, 2021
@dependabot dependabot bot deleted the dependabot/composer/phan/phan-4.0.7 branch July 3, 2021 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants