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

Update phan/phan requirement from ^3.0 to ^3.2 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Nov 18, 2020

Updates the requirements on phan/phan to permit the latest version.

Changelog

Sourced from phan/phan's changelog.

Nov 12 2020, Phan 3.2.4

New features (Analysis):

  • Partially support self<A> and static<B> in phpdoc types. (#4226) This support is incomplete and may run into issues with inheritance.

Bug fixes:

  • Properly infer the literal string value of __FUNCTION__ for global functions in namespaces (#4231)
  • Fix false positive PhanPossiblyInfiniteLoop for do {} while (false); that is unchangeably false (#4236)
  • Infer that array_shift and array_pop return null when the passed in array could be empty, not false. (#4239)
  • Handle PhpToken::getAll() getting renamed to PhpToken::tokenize() in PHP 8.0.0RC4. (#4189)

Oct 12 2020, Phan 3.2.3

New features (CLI, Config):

  • Add light_high_contrast support for --color-scheme. (#4203) This may be useful in terminals or CI web pages that use white backgrounds.

New features (Analysis):

  • Infer that parent::someMethodReturningStaticType() is a subtype of the current class, not just the parent class. (#4202)

  • Support phpdoc @abstract or @phan-abstract on non-abstract class constants, properties, and methods to indicate that the intent is for non-abstract subclasses to override the definition. (#2278, #2285) New issue types: PhanCommentAbstractOnInheritedConstant, PhanCommentAbstractOnInheritedProperty, PhanCommentOverrideOnNonOverrideProperty

    For example, code using static::SOME_CONST or static::$SOME_PROPERTY or $this->someMethod() may declare a placeholder @abstract constant/property/method, and use this annotation to ensure that all non-abstract subclasses override the constant/property/method (if using real abstract methods is not practical for a use case)

  • Warn about @override on properties that do not override an ancestor's property definition. New issue type: PhanCommentOverrideOnNonOverrideProperty. (Phan already warns for constants and methods)

Plugins:

  • Emit PhanPluginUseReturnValueGenerator for calling a function returning a generator without using the returned Generator. (#4013)

Bug fixes:

  • Properly analyze the right hand side for $cond || throw ...; (e.g. emit PhanCompatibleThrowException) (#4199)
  • Don't infer implications of left || right on the right hand expression when the right hand side has no side effects. (#4199)
  • Emit PhanTypeInvalidThrowStatementNonThrowable for thrown expressions that definitely aren't \Throwable even when warn_about_undocumented_throw_statements is disabled or the throw expression is in the top level scope. (#4200)
  • Increase the minimum requirements in composer.json to what Phan actually requires. (#4217)

Sep 19 2020, Phan 3.2.2

New features (Analysis):

  • Improve handling of missing argument info when analyzing calls to functions/methods. This will result in better issue detection for inherited methods or methods which Phan does not have type info for.

... (truncated)

Commits
  • 079a6fc Merge pull request #4240 from TysonAndre/release-3.2.4
  • c810bc8 Release Phan 3.2.4
  • 29ec064 Handle PhpToken::getAll() getting renamed to ::tokenize()
  • 7710186 Fix plugin type inference for array_shift/array_pop
  • a3e9bd9 Add alternate setrawcookie() signature
  • 15d52a0 Fix test failure with paratest and php 7.2
  • fb120fb Fix false positive PhanPossiblyInfiniteLoopo
  • 6708e1e Fix inferred value of __FUNCTION__ in namespaces
  • 2a13936 Merge pull request #4227 from TysonAndre/template-support
  • 70feb29 Support tracking static<T> and self<T>
  • Additional commits viewable in compare view

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)

Updates the requirements on [phan/phan](https://github.com/phan/phan) to permit the latest version.
- [Release notes](https://github.com/phan/phan/releases)
- [Changelog](https://github.com/phan/phan/blob/master/NEWS.md)
- [Commits](phan/phan@3.0.0...3.2.4)

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 18, 2020
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 php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants