This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| vimeo/psalm | 7.12.0 → 7.15.0 |
WARNING
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
vimeo/psalm
v7.15.0
What's Changed
Features
- Give Closure::getCurrent() the signature of the closure it is called in by @danog in #14467
- Report native constants newer than the analysed PHP version by @danog in #14478
Fixes
- Date native symbols from a generated dictionary instead of loading every callmap by @danog in #14464
- Charge io for the pgsql, pcntl and posix functions that use the server, the process or the system by @danog in #14465
- Keep the callmap return type of a builtin whose stub declares none by @danog in #14466
- Let a lazy ghost initializer call the constructor of the object it is given by @danog in #14470
- Read C::{$name} like C::NAME when $name holds literal names by @danog in #14468
- Don't crash on a static call of a native method newer than the runtime by @danog in #14479
Internal changes
Full Changelog: https://github.com/vimeo/psalm/compare/7.14.0...7.15.0
v7.14.0
What's Changed
Features
- Full PHP 8.6 support: deprecations, API types and capabilities by @danog in #14413
- UX: List enabled plugins in the startup output by @alies-dev in #14510
Fixes
- Report an invalid psalm-refactor destination instead of crashing by @MohannadElemary in #14097
- fix: preserve array types after array_walk callbacks by @emreocell in #14173
- Keep what both operands of xor assign in an if condition by @shu-chen-dot-ca in #14357
- Resolve static nested in the hint of a typed closure param with the called class by @shu-chen-dot-ca in #14202
- fix(templates): localize the return type of a closure in a used trait by @jirkace in #12810
- fix(mixed): a non-empty mixed is never a falsy value, nor an empty mixed a truthy one by @jirkace in #12672
- fix(stubs): DOMNode::$ownerDocument is nullable by @jirkace in #14309
- fix(args): unpacking an array shape with integer keys that is not a list passes as many arguments as it has keys by @jirkace in #14415
- fix(reconciler): a loose comparison with a string keeps the scalars it can be equal to by @jirkace in #14429
- fix(stubs): DateTimeImmutable::getTimezone() may return false by @jirkace in #14343
- fix(stubs): pathinfo returns the array for PATHINFO_ALL by @jirkace in #14315
- fix(combiner): a class-string key of a merged keyed array stays a class-string by @jirkace in #14403
- fix(property): a static property of static type in a final class takes the class by @jirkace in #14351
- fix(property-map): remove the bogus WriteException entry of the manual property map by @jirkace in #14344
- fix(get_object_vars): resolve the class constants of a property type by @jirkace in #14342
- fix(arithmetic): % with a negative divisor takes the sign of the dividend by @jirkace in #14320
- fix(method-comparator): implemented return type messages name the method as written by @jirkace in #14314
- fix(call): call_user_func and call_user_func_array are matched case-insensitively by @jirkace in #14313
- fix(docblock): an intersection type in an @method parameter by @jirkace in #14338
- fix(context): a variable first assigned in a possibly skipped branch keeps its type by @jirkace in #14376
- fix(deprecated): a promoted property marked @deprecated is reported on use by @jirkace in #14310
- fix(loop): a foreach that is entered holds what an iteration ends with, at a continue too by @jirkace in #14418
- fix(filter_var): bools, empty literals and FILTER_FLAG_EMPTY_STRING_NULL of FILTER_SANITIZE_STRING by @jirkace in #14329
- fix(and): the left operand of && keeps the truthy clause of a nullable int by @jirkace in #14420
- fix(stubs): declare Closure::getCurrent() for PHP 8.5 by @jirkace in #14339
- fix(include): strict_types applies per file, not from the file that includes it by @jirkace in #14402
- Narrow ReflectionReference::fromArrayElement() for by-reference literal elements by @orklah in #14488
- Report GitHub Actions pull requests and other CI services to Shepherd by @alies-dev in #14472
- fix(visibility): a use adaptation changes the visibility a method call is checked with before __call() by @jirkace in #14399
- fix(isset): isset of an offset of a template array narrows the key to key-of by @jirkace in #14438
- fix(php85): writing a property of a constant object is a compile error before PHP 8.6 by @jirkace in #14405
- fix(mixin): an inaccessible property is read from the mixin through __get() by @jirkace in #14375
- fix(taint): a superglobal is still tainted after eval() by @jirkace in #14356
- fix(array-access): a null offset of an ArrayAccess object is checked by offsetGet by @jirkace in #14349
- Don't take matching another pattern for a paradox by @phcorp in #14444
- Report an override that widens or drops the native type of a class constant by @danog in #14485
Docs
- Document Shepherd on its own page by @alies-dev in #14473
Internal changes
- Fix the red filterVarSanitizeStringWithEmptyStringNull test on master by @alies-dev in #14493
- CI: Split BuildInfoCollector into one class per CI service by @alies-dev in #14498
New Contributors
- @emreocell made their first contribution in #14173
- @phcorp made their first contribution in #14444
Full Changelog: https://github.com/vimeo/psalm/compare/7.13.2...7.14.0
v7.13.2
What's Changed
Fixes
- Don't prefix PHP's Io namespace in the phar (crash on PHP 8.6 with threads) by @danog in #14414
- Don't crash combining type variables that all stand for never until bound by @danog in #14379
- Report only the ternary's own negated condition as redundant by @danog in #14417
- Keep the template arguments of the object in callable($this) and callable(static) params by @danog in #14423
Full Changelog: https://github.com/vimeo/psalm/compare/7.13.1...7.13.2
v7.13.1
What's Changed
Fixes
- Fix template arguments of a parent named in another case, share @extends/@implements/@use scanning by @orklah in #14397
- fix(assertion): a redundant negated assertion on a template keeps the template by @jirkace in #14330
- Share the template and result code of negated type assertions by @orklah in #14408
- Count a write through an ArrayAccess offset as a use of the object by @danog in #14410
Full Changelog: https://github.com/vimeo/psalm/compare/7.13.0...7.13.1
v7.13.0
What's Changed
Features
- Parse SQL queries to track security analysis taints by @danog in #14159
- Add the redirect taint kind, and connect session stores to their reads by @danog in #14158
- Give a parameter no sinks with @psalm-taint-sink none by @danog in #14230
- Trust the server a request reaches when the URL's host matches a list of hosts by @danog in #14170
- Let plugins record what a validation checks, and trust the value once a check on its result says it passed by @danog in #14176
- Report escaped values placed where their escaping doesn't protect them by @danog in #14400
Fixes
- Let @psalm- purity tags win over @pure and @phpstan-pure by @shu-chen-dot-ca in #14071
- Pin type variables of new assigned to static properties, property items and property references by @orklah in #14296
- Keep references bound in a loop or branch after it by @orklah in #14283
- fix(reconciler): keep the value type of an array offset when empty() is true by @jirkace in #13087
- Fix: default cache directory when HOME is unset or not writable by @alies-dev in #14332
- Fix: type of globals written through another function depends on file analysis order by @alies-dev in #12549
- Report a path the client chooses given to UploadedFileInterface::moveTo() and to the parameters inheriting a sink by @danog in #14227
- fix(type): a callable is never falsy by @jirkace in #14322
- fix(docblock): two interfaces documenting the same signature document the implementation by @jirkace in #14361
- fix(assertions): a false $a !== $b gives both operands the type of the other by @jirkace in #13365
- fix(call): the out type of a by-ref param reads the templates bound by later arguments by @jirkace in #13435
- fix(docblock): callable param types with the same inner parameter name are not duplicated tags by @jirkace in #14327
- Infer loop variables reassigned from their own method call, property or offset by @danog in #14392
- Keep the template of a variable identical to a literal by @orklah in #14398
Docs
Internal changes
- Fix master self-analysis: mark cache-directory env vars as operator-chosen by @danog in #14378
- Share the integer comparison narrowing of the two simple reconcilers by @orklah in #14307
- Merge the assertion finders of < and > comparisons by @orklah in #14395
Full Changelog: https://github.com/vimeo/psalm/compare/7.12.0...7.13.0
Configuration
📅 Schedule: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Activity
13PR author is in the excluded authors list.
IMPORTANT
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai reviewcommand.
Run configuration
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e9796642-6d71-446f-b287-fb0d2eaf4313You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- Trigger review
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
- (https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- Mastodon
:white_check_mark: Snyk checks have passed. No issues have been found so far.
| Status | Scan Engine | Critical | High | Medium | Low | Total (0) |
|---|---|---|---|---|---|---|
| :white_check_mark: | Open Source Security | 0 | 0 | 0 | 0 | 0 issues |
:computer: Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.
Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.
- Queue this pull request once it meets the queue conditions
Up to standards :white_check_mark:
🟢 Issues 0 issues
Results:
0new issues
🟢 Metrics 0 complexity · 0 duplication
Metric Results Complexity 0 Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Current Aviator status
This pull request is currently open (not queued).
How to merge
To merge this PR, comment
/aviator mergeor add themergequeuelabel.