Skip to content

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps phan/phan from 2.3.0 to 2.3.1.

Changelog

Sourced from phan/phan's changelog.

Oct 20 2019, Phan 2.3.1

New features(CLI, Configs):

  • Instead of printing the full help when Phan CLI args or configuration is invalid,
    print just the errors/warnings and instructions and Type ./phan --help (or --extended-help) for usage.
  • Add an option --debug-signal-handler that can be used to diagnose
    why Phan or a plugin is slow or hanging. (Requires the pcntl module)
    This installs a signal handler that response to SIGINT (aka Ctrl-C), SIGUSR1, and SIGUSR2.
  • Print a single backtrace in the crash reporter with the file, line, and arguments instead of multiple backtraces.
  • Emit a warning suggesting using --long-option instead when -long-option[=value] is passed in.
  • Change colorization of some error messages. Print some warnings to stderr instead of using error_log().

New features(Analysis):

  • Emit PhanTypeMismatchPropertyRealByRef or PhanTypeMismatchPropertyByRef
    when potentially assigning an incompatible type to a php 7.4 typed property
    (or a property with a phpdoc type).

  • Warn about suspicious uses of + or += on array shapes or lists. (#3364)
    These operator will prefer the fields from the left hand side,
    and will merge lists instead of concatenate them.
    New issue types: PhanSuspiciousBinaryAddLists, PhanUselessBinaryAddRight

  • Improvements to inferred types of sort, array_merge, etc. (#3354)

  • Fix bug allowing any array shape type to cast to a list.

  • Warn about unnecessary branches leading to identical return statements in pure functions, methods, and closures (#3383)
    This check is only run on pure methods.

    This requires that UseReturnValuePlugin be enabled and works best when 'plugin_config' => ['infer_pure_methods' => true] is set.

  • Allow list<X> to cast to array{0:X, 1?:X} (#3390)

  • Speed up computing line numbers of diagnostics in the polyfill/fallback parser when there are multiple diagnostics.

Language Server/Daemon mode:

  • Reduce the CPU usage of the language server's main process when the pcntl module is used to fork analysis processes (Unix/Linux).
  • Speed up serializing large responses in language server mode (e.g. when a string has an unmatched quote).
Commits
  • 96a7b3c Merge pull request #3402 from TysonAndre/release-2.3.1
  • 9a68cf9 Release 2.3.1
  • 210fa4e Merge pull request #3400 from TysonAndre/speed-up-languageserver
  • 82dc25f Speed up language server when serializing many issues
  • c84dc7d Merge pull request #3399 from TysonAndre/speed-up-languageserver
  • d95e6c0 Make the stream_select timeout positive in plugin
  • 6beda21 Speed up the language server: avoid busy loop reading in manager
  • ae87c4d Merge pull request #3398 from TysonAndre/fix-slow-line-number-calculation
  • d4055b8 Fix slow line number calculation of diagnostics for polyfill parser
  • 272ebff Merge pull request #3397 from TysonAndre/debug-signal-handler
  • 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)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

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

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 Oct 21, 2019
@dependabot-preview dependabot-preview bot merged commit d5b59ae into master Oct 21, 2019
@dependabot-preview dependabot-preview bot deleted the dependabot/composer/phan/phan-2.3.1 branch October 21, 2019 05:41
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