Skip to content

Bump phan/phan from 2.2.11 to 2.2.12 #93

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

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps phan/phan from 2.2.11 to 2.2.12.

Changelog

Sourced from phan/phan's changelog.

Sep 08 2019, Phan 2.2.12

New features(CLI):

  • Improve error messages when the --init-* flags are provided without passing --init. (#3153)
    Previously, Phan would fail with a confusing error message.
  • New tool tool/pdep to visualize project dependencies - see tool/pdep -h
    (uses the internal plugin DependencyGraphPlugin)
  • Support running tool/phoogle (search for functions/methods by signatures) in Windows.
  • Add support for --limit <count> and --progress-bar to tool/phoogle.

New features(Analysis):

  • Support @phan-immutable annotation on class doc comments, to indicate that all instance properties are read-only.

    • Phan does not check if object fields of those immutable properties will change. (e.g. $this->foo->prop = 'x'; is allowed)
    • This annotation does not imply that methods have no side effects (e.g. I/O, modifying global state)
    • This annotation does not imply that methods have deterministic return values or that methods' results should be used.

    @phan-immutable is an alias of @phan-read-only. @phan-read-only was previously supported on properties.

  • Support @phan-side-effect-free annotation on class doc comments,
    to indicate that all instances of the class are @phan-immutable
    and that methods of the class are free of external side effects. (#3182)

    • All instance properties are treated as read-only.
    • Almost all instance methods are treated as @phan-side-effect-free - their return values must be used.
      (excluding a few magic methods such as __wakeup, __set, etc.)
      This does not imply that they are deterministic (e.g. rand(), file_get_contents(), and microtime() are allowed)
  • Add @phan-side-effect-free as a clearer name of what @phan-pure implied for methods.

  • Fix false positives for checking for redundant conditions with iterable and is_iterable.

  • Properly infer real types for is_resource checks and other cases where UnionType::fromFullyQualifiedRealString() was used.

  • Avoid false positives for the config setting 'assume_real_types_for_internal_functions'.
    Include all return types for many internal global functions for --target-php-version of 7.[0-4],
    including those caused by invalid arguments or argument counts.

  • Warn about division, modulo, and exponentiation by 0 (or by values that would cast to 0).

  • Fix a bug converting absolute paths to relative paths when the project directory is a substring of a subdirectory (#3158)

  • Show the real signature of the abstract method in PhanClassContainsAbstractMethod issues. (#3152)

  • Support analyzing php 7.3's is_countable(), and warn when the check is redundant or impossible (#3172)

  • Don't suggest $this->prop as an alternative to the undeclared variable $prop from a static method/closure. (#3174)

  • Make real return types of Closure::bind() and other closure helpers more accurate. (#3184)

  • Include use($missingVar) in suggestions for PhanUndeclaredVariable if it is defined outside the closure(s) scope.
    Also, suggest hardcoded globals such as $argv.

  • Warn about $this instanceof self and $this instanceof static being redundant.

  • Fix false positive PhanInvalidConstantExpression for php 7.4 argument unpacking (e.g. function f($x = [1, ...SOME_CONST]) {})

  • Emit PhanTypeMismatchArgumentInternalProbablyReal when the real type of an argument doesn't match Phan's signature info for a function (#3199)
    (but there is no Reflection type info for the parameter)
    Continue emitting PhanTypeMismatchArgumentInternal when the real type info of the argument is unknown or is permitted to cast to the parameter.

  • Improve analysis of switch statements for unused variable detection and variable types (#3222, #1811)

  • Infer the value of count() for union types that have a real type with a single array shape.

  • Fix false positive PhanSuspiciousValueComparisonInLoop for value expressions that contain variables.

  • Warn about redundant condition detection in more cases in loops.

... (truncated)
Commits
  • 2a92f87 Merge pull request #3235 from TysonAndre/release-2.2.12
  • be0e90b Release Phan 2.2.12
  • 1385685 Merge pull request #3233 from TysonAndre/improve-phoogle
  • 3e43d94 Make phoogle support Windows, add CLI options.
  • a6f7635 Merge pull request #3229 from TysonAndre/pdep-refactor
  • 6aec1be Various improvements to tool/pdep
  • d1a35cc Merge pull request #3232 from TysonAndre/bugfix
  • 7db4d47 Fix a crash in UseReturnValueVisitor, fix false positive
  • 78fd461 Merge pull request #3230 from TysonAndre/update-news
  • 8d2daa8 Update NEWS.md for various PRs in 2.2.12-dev
  • 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.

If all status checks pass Dependabot will automatically merge this pull request.


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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

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

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Sep 9, 2019
@dependabot-preview dependabot-preview bot merged commit 5c170b1 into master Sep 9, 2019
@dependabot-preview dependabot-preview bot deleted the dependabot/composer/phan/phan-2.2.12 branch September 9, 2019 05:12
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