Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Nov 15, 2021

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

Changelog

Sourced from phan/phan's changelog.

Nov 13 2021, Phan 5.3.0

New Features(Analysis):

  • Fix false positive PhanPossiblyUndeclaredVariable warning when a try block unconditionally returns/throws/exits (#4419)

  • Fix false positive warnings when analyzing enums, infer that automatically generated methods of enums exist. (#4313)

  • Properly resolve template type when getIterator returns an Iterator that includes a template. (#4556)

  • Fix false positives such as PhanTypeMismatchArgumentNullable analyzing recursive call with parameter set to literal, without real type information. (#4550) (e.g. function ($retry = true) { if ($retry) {/*...*/} some_call_using_retry($retry); })

  • Properly detect PhanUnusedVariable in try-catch where catch always rethrows. (#4567)

  • Make read-only/write-only property detection more accurate for assignment operations (e.g. +=, ??=) and increment/decrement operations. (#4570)

  • Improve estimates of array sizes when analyzing calls that unpack values, based on the inferred real type set. (#4577)

  • Infer that variadic parameters can have string keys (as of php 8.0) (#4579)

  • Emit PhanParamTooFewUnpack and PhanParamTooFewInternalUnpack to indicate when argument unpacking may provide too few arguments to the called function. (#4577)

  • Support the non-standard @no-named-arguments PHPDoc comment on function-likes. (#4580, #4152) Treat variadic parameters as list types when this annotation is used, warn about unpacking string arguments or explicitly passing named arguments to functions using this declaration.

  • Warn about argument unpacking that may pass strings to internal functions (e.g. var_dump(...['a' => 'unsupported'])) (#4579) New issue types: PhanSuspiciousNamedArgumentVariadicInternalUnpack

  • Support @phan-type AliasName=UnionType annotation in inline strings or element comments (#4562)

    These aliases will apply to remaining statements in the current top-level namespace blocks, similar to use statements, but can also be defined in methods and apply to subsequent methods.

    This can be of use in avoiding repetition of phpdoc for long type definitions.

    // Alternate inline string version to work around php-ast limitations
    '@phan-type UserData = array{name: string, id: int, createdAt: DateTime}';
    /**
    
    @​type-alias UserData = array{name: string, id: int, createdAt: DateTime}
    (applies to phpdoc in this and all subsequent AST nodes in the namespace block)
    /
    class ExampleElementWithPHPDoc {
    /*
    
    @​param UserData[] $users
    @​return list<UserData>
    /
    public function filterUsers(array $values): array { / ... */ }
    }
    
    
    
    // The UserData alias is still defined and can be used in other statements
    namespace XYZ;
    // The UserData alias is no longer defined in the new namespace block.

  • When analyzing calls that modify variables as pass by reference, merge old types with existing types to account for possibility of branches or early returns (#4602)

... (truncated)

Commits
  • 42ee10d Merge pull request #4615 from TysonAndre/release-5.3.0
  • 907688b Merge pull request #4595 from arichard4/php_version
  • 5019031 Release Phan 5.3.0
  • 9c845ab Merge pull request #4613 from TysonAndre/grpc-check
  • 890f3ee Update NEWS
  • 0f82272 Read process count and --processes before restarting without grpc
  • 1f5ab9a Merge pull request #4602 from arichard4/ref_type
  • 77e4430 Pass-by-ref vars result in a merged union type, not an overwritten one
  • 7b1d7f4 Phan's minimum supported php version is stated to be 7.2
  • 7620cf4 Merge pull request #4592 from arichard4/param_type
  • 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/v5/NEWS.md)
- [Commits](phan/phan@3.0.0...5.3.0)

---
updated-dependencies:
- dependency-name: phan/phan
  dependency-type: direct:development
...

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 15, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Aug 9, 2022

Superseded by #25.

@dependabot dependabot bot closed this Aug 9, 2022
@dependabot dependabot bot deleted the dependabot/composer/phan/phan-tw-5.3 branch August 9, 2022 05:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

1 participant