Skip to content

Bump larastan/larastan from 3.10.0 to 3.15.0 - #21

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/larastan/larastan-3.15.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/larastan/larastan-3.15.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2026

Copy link
Copy Markdown

Bumps larastan/larastan from 3.10.0 to 3.15.0.

Release notes

Sourced from larastan/larastan's releases.

3.15.0

What's Changed

Larastan 3.15.0 requires PHPStan 2.3.5 or newer within the 2.x series. Update PHPStan alongside Larastan when upgrading. The PHP and Laravel requirements are unchanged.

Added

  • Infer Arr::mapWithKeys() callback parameter types and the mapped array's key and value types by @​canvural in 0a72cb7.
  • Keep pivot model types in collections returned by BelongsToMany and MorphToMany relations with the opt-in pivotTypesInCollections parameter, disabled by default, by @​canvural in #2634. Read more about it here.
  • Register Larastan's extensions using PHPStan DI attributes by @​canvural in #2639.

Fixed

  • Use custom pivot accessor names set with as() in BelongsToMany results by @​canvural in #2634.
  • Preserve static and $this model types in SoftDeletes builder methods, including onlyTrashed(), withTrashed(), withoutTrashed(), restoreOrCreate(), and createOrRestore(), by @​odolbeau in #2617.
  • Use the model's getForeignKey() when reading foreignIdFor() column names in migrations by @​APX403 in #2638.
  • Read columns declared with foreignUuidFor() and foreignUlidFor() in migrations by @​APX403 in #2638.
  • Return the query result collection from Eloquent insertOrIgnoreReturning() calls on Laravel 13.30.1 and newer by @​canvural in ad65a79.
  • Handle reordered named arguments in rules and collectors, including view and translation usage detection, by @​canvural in 3923362.

New Contributors

Full Changelog: v3.14.0...v3.15.0

3.14.0

What's Changed

The new Arr::get() and Arr::pull() key check is enabled by default. Calls with definitely missing keys now report offsetAccess.notFound, including calls that provide a default value. PHP, Laravel, and PHPStan requirements are unchanged.

Added

  • Infer return types for Arr::get() and Arr::pull(), including dot notation and default values, and track array keys removed by Arr::pull(), by @​canvural in #2635.
  • Report definitely missing keys in Arr::get() and Arr::pull() by @​canvural in #2635.
  • Load Redis facade and connection stubs for the configured PhpRedis or Predis driver, with a redisDriver override, by @​canvural in #2626.
  • Re-analyse affected files when config files, migrations, or schema dumps are created, changed, or deleted by @​canvural in #2631.

Fixed

  • Resolve config values in the config file's own scope, including local variables and imports, by @​canvural in aefbc03.
  • Resolve config file @return PHPDocs using that file's imports, and avoid incorrect inference for missing keys or files with multiple returns, by @​canvural in f0e6e1c, 73cd4c3, and 10e955b.
  • Preserve env()'s possible return types when its default is null and generalizeEnvReturnType is enabled by @​canvural in bfcc01e.
  • Rerun unused-view and missing-translation checks when their input files change by @​SanderMuller in #2630.
  • Preserve Arrayable<TKey, TValue> types in toArray() and correct model array key types by @​liamduckett in #2254.
  • Support union and intersection return types from model newCollection() methods by @​ybai08 in #2604.
  • Accept unions of array shapes in FormRequest::safe() by @​aran112000 in #2637.
  • Only evaluate closures passed to value(), preserving other callable values, by @​APX403 in #2632.
  • Read #[UseEloquentBuilder] from parent models and traits on Laravel 13.31 and newer by @​APX403 in #2621.
  • Resolve a model subclass's factory using its own conventional factory name by @​SanderMuller in #2625.

... (truncated)

Commits
  • ffb2968 test: expect named config collection calls from Laravel 12.20
  • 3923362 fix: read named arguments by parameter in rules and collectors
  • d4d640a docs: clarify where call arguments are reordered
  • 7a0ed9b fix: keep versioned passthru check analysable on older Laravel
  • ad65a79 fix: forward insertOrIgnoreReturning through Eloquent builder passthru
  • 4d65727 fix: keep static model types in SoftDeletes builder methods (#2617)
  • eca04bf fix: name foreignIdFor() columns with getForeignKey() and read foreignUuidFor...
  • d79cda0 test: return plain float in DB::transaction fixture
  • bda60d8 fix: use custom pivot accessor names in BelongsToMany results (#2634)
  • 0a72cb7 feat: add generic return type for Arr::mapWithKeys
  • 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.


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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [larastan/larastan](https://github.com/larastan/larastan) from 3.10.0 to 3.15.0.
- [Release notes](https://github.com/larastan/larastan/releases)
- [Changelog](https://github.com/larastan/larastan/blob/3.x/RELEASE.md)
- [Commits](larastan/larastan@v3.10.0...v3.15.0)

---
updated-dependencies:
- dependency-name: larastan/larastan
  dependency-version: 3.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 20, 2026
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