Skip to content

Update PHPStan packages (major) #49

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 12, 2024

This PR contains the following updates:

Package Change Age Confidence
nunomaduro/larastan ^2.6 -> ^3.0 age confidence
phpstan/phpstan ^1.10 -> ^2.0 age confidence
phpstan/phpstan-deprecation-rules ^1.1 -> ^2.0 age confidence
phpstan/phpstan-phpunit ^1.3 -> ^2.0 age confidence
phpstan/phpstan-strict-rules ^1.5 -> ^2.0 age confidence

Release Notes

larastan/larastan (nunomaduro/larastan)

v3.6.0

Compare Source

Added 🪄

  • [3.x] getCountForPagination as a pass-thru for Laravel versions >= 12.15 by @​cosmastech in https://github.com/larastan/larastan/pull/2301
  • [3.x] feat: add new rule to detect unnecessary Enumerable::toArray() calls by @​calebdw in https://github.com/larastan/larastan/pull/2311 Read more about it here
  • Accurate return types for Config::collection() calls (only for Laravel >= 12.20.0) Note: Needs checkConfigTypes parameter to be enabled in the config.
  • Two new rules that will warn if you can access the information through request instead of global function NoAuthFacadeInRequestScopeRule and NoAuthHelperInRequestScopeRule Read more about it here
  • ConfigCollectionRule to warn you if you pass a config option that is not an array to Config::collection call. Note: Needs checkConfigTypes parameter to be enabled in the config.
  • Added support for calling pluck on collections with closures. (only for Laravel >= 12.20.0) larastan/larastan@fd16758

Internal ⚙️

New Contributors

Full Changelog: larastan/larastan@v3.5.0...v3.6.0

v3.5.0

Compare Source

What's Changed

Added
Fixed

New Contributors

Full Changelog: larastan/larastan@v3.4.2...v3.5.0

v3.4.2

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.4.1...v3.4.2

v3.4.1

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.4.0...v3.4.1

v3.4.0

Compare Source

3.4.0

This release includes bunch of new features that will help you fix some PHPStan level 7 errors 💪🏽

Features 🚀
Fixes 🐛
Docs 📝

New Contributors

Full Changelog: larastan/larastan@v3.3.1...v3.4.0

v3.3.1

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.3.0...v3.3.1

v3.3.0

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.2.0...v3.3.0

v3.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.1.0...v3.2.0

v3.1.0

Compare Source

What's Changed

Full Changelog: larastan/larastan@v3.0.4...v3.1.0

v3.0.4

Compare Source

Improvements

Latest PHPStan version compatibility

Full Changelog: larastan/larastan@v3.0.3...v3.0.4

v3.0.3

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.0.2...v3.0.3

v3.0.2

Compare Source

What's changed?

Updated minimum required PHPStan version to 2.0.2

Full Changelog: larastan/larastan@v3.0.1...v3.0.2

v3.0.1

Compare Source

What's Changed

Fixed
Internal

Also changes from 2.9.12

New Contributors

Full Changelog: larastan/larastan@v3.0.0...v3.0.1

v3.0.0: 3.0.0

Compare Source

Larastan 3.0 🥳

This release adds compability with PHPStan 2 and drops support for Laravel versions < 11

Please make sure you read the both PHPStan's and Larastan's upgrade guides!

Notable changes:

  • Added support for PHPStan 2
  • Dropped support for Laravel versions <11
  • Dropped support for automatically adding generic return types for relations. Read the upgrade guide for more info.
  • Removed some PHPStan config options. If you want the same behavior as before, you can add them back yourselves.
  • Made some rules enabled by default.

v2.11.2

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v3.4.1...v3.4.2

v2.11.1

Compare Source

Fixes

Full Changelog: larastan/larastan@v2.11.0...v2.11.1

v2.11.0

Compare Source

2.11.0

This release includes bunch of new features that will help you fix some PHPStan level 7 errors 💪🏽

New Features 🚀

Fixes 🐛

Full Changelog: larastan/larastan@v2.10.0...v2.11.0

v2.10.0

Compare Source

What's Changed

  • Replaces phpmyadmin/sql-parser by iamcal/sql-parser.

Full Changelog: larastan/larastan@v2.9.14...v2.10.0

v2.9.14

Compare Source

Improvements

Latest PHPStan version compatibility

Full Changelog: larastan/larastan@v2.9.13...v2.9.14

v2.9.13: 2.9.13

Compare Source

What's Changed

Full Changelog: larastan/larastan@v2.9.12...v2.9.13

v2.9.12

Compare Source

What's Changed

Added
Fixed

Full Changelog: larastan/larastan@v2.9.11...v2.9.12

v2.9.11: 2.9.11

Compare Source

What's Changed

Fixed
Internal

New Contributors

Full Changelog: larastan/larastan@v2.9.10...v2.9.11

v2.9.10: 2.9.10

Compare Source

What's Changed

Added
Fixed

New Contributors

Full Changelog: larastan/larastan@v2.9.9...v2.9.10

v2.9.9

Compare Source

What's Changed

New Contributors

Full Changelog: larastan/larastan@v2.9.8...v2.9.9

v2.9.8

Compare Source

What's Changed

Added

Fixed

New Contributors

Full Changelog: larastan/larastan@v2.9.7...v2.9.8

v2.9.7

Compare Source

What's Changed

Added

Fixed

Internal

New Contributors

Full Changelog: larastan/larastan@v2.9.6...v2.9.7

v2.9.6

Compare Source

What's Changed

Added

[!IMPORTANT]
Make sure you read the upgrade guide on this topic to learn how you can correctly use this feature.

Fixed

Full Changelog: larastan/larastan@v2.9.5...v2.9.6

v2.9.5: 2.9.5

Compare Source

What's Changed

Fixed:

  • added sole method to Relation stubs - 56d7123
  • made ModelAppendsRule optional - 4834d0f

Maintanence

Full Changelog: larastan/larastan@v2.9.4...v2.9.5

v2.9.4

Compare Source

What's Changed

Added

Fixed

Internal

New Contributors

Full Changelog: larastan/larastan@v2.9.3...v2.9.4

v2.9.3

Compare Source

What's Changed

Fixed

Internal

Full Changelog: larastan/larastan@v2.9.2...v2.9.3

v2.9.2: 2.9.2

Compare Source

What's Changed

Added

Fixed

Internal

Full Changelog: larastan/larastan@v2.9.1...v2.9.2

v2.9.1: 2.9.1

Compare Source

What's Changed

Added

Fixed

  • Fixed issue where collections with invalid templates configured would cause a fatal error. by @​mad-briller in https://github.com/larastan/larastan/pull/1863
  • Fixed a case with macros registered as static methods with array syntax 42d5262
  • Fixed an issue where map and mapWithKeys methods of Eloquent collection returns a Eloquent collection if model is returned from the callback 097a2d2

Internal

New Contributors

Full Changelog: larastan/larastan@v2.9.0...v2.9.1

v2.9.0: 2.9.0

Compare Source

Added

Fixed

Internal

New Contributors

Full Changelog: larastan/larastan@v2.8.1...v2.9.0

v2.8.1

Compare Source

What's Changed?

Fixed
  • check for macros on query builder too: 6e2729e
  • use resolveName in ModelFindExtension: b7cc6a2

Full Changelog: larastan/larastan@v2.8.0...v2.8.1

v2.8.0

Compare Source

What's Changed

Added ✨
Fixed 🐛
Maintenance 🛠

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Nov 12, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update nunomaduro/larastan:3.6.0 phpstan/phpstan:2.1.22 phpstan/phpstan-deprecation-rules:2.0.3 phpstan/phpstan-phpunit:2.0.7 phpstan/phpstan-strict-rules:2.0.6 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins --minimal-changes
Loading composer repositories with package information
Dependency laravel/framework (via replace of illuminate/console) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency laravel/framework (via replace of illuminate/container) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency laravel/framework (via replace of illuminate/contracts) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency laravel/framework (via replace of illuminate/database) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency laravel/framework (via replace of illuminate/http) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency laravel/framework (via replace of illuminate/pipeline) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency laravel/framework (via replace of illuminate/support) is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires phpstan/phpstan ^2.0, found phpstan/phpstan[2.0.0, ..., 2.1.22] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - ergebnis/composer-normalize is locked to version 2.36.0 and an update of this package was not requested.
    - ergebnis/composer-normalize 2.36.0 requires php ~8.1.0 || ~8.2.0 -> your php version (8.4.10) does not satisfy that requirement.
  Problem 3
    - Root composer.json requires nunomaduro/larastan ^3.0 -> satisfiable by nunomaduro/larastan[v3.6.0].
    - nunomaduro/larastan v3.6.0 requires illuminate/console ^11.44.2 || ^12.4.1 -> found illuminate/console[v11.44.2, ..., v11.45.1, v12.4.1, ..., v12.21.0] but these were not loaded, likely because it conflicts with another require.
  Problem 4
    - phpstan/extension-installer is locked to version 1.3.1 and an update of this package was not requested.
    - phpstan/extension-installer 1.3.1 requires phpstan/phpstan ^1.9.0 -> found phpstan/phpstan[1.9.0, ..., 1.12.28] but it conflicts with your root composer.json require (^2.0).
  Problem 5
    - Root composer.json requires phpstan/phpstan-deprecation-rules ^2.0 -> satisfiable by phpstan/phpstan-deprecation-rules[2.0.3].
    - phpstan/phpstan-deprecation-rules 2.0.3 requires phpstan/phpstan ^2.1.15 -> found phpstan/phpstan[2.1.15, ..., 2.1.22] but these were not loaded, likely because it conflicts with another require.
  Problem 6
    - Root composer.json requires phpstan/phpstan-phpunit ^2.0 -> satisfiable by phpstan/phpstan-phpunit[2.0.7].
    - phpstan/phpstan-phpunit 2.0.7 requires phpstan/phpstan ^2.1.18 -> found phpstan/phpstan[2.1.18, ..., 2.1.22] but these were not loaded, likely because it conflicts with another require.
  Problem 7
    - Root composer.json requires phpstan/phpstan-strict-rules ^2.0 -> satisfiable by phpstan/phpstan-strict-rules[2.0.6].
    - phpstan/phpstan-strict-rules 2.0.6 requires phpstan/phpstan ^2.0.4 -> found phpstan/phpstan[2.0.4, ..., 2.1.22] but these were not loaded, likely because it conflicts with another require.
  Problem 8
    - pestphp/pest is locked to version v2.6.2 and an update of this package was not requested.
    - brianium/paratest v7.1.4 requires php ~8.1.0 || ~8.2.0 -> your php version (8.4.10) does not satisfy that requirement.
    - pestphp/pest v2.6.2 requires brianium/paratest ^7.1.4 -> satisfiable by brianium/paratest[v7.1.4].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate renovate bot enabled auto-merge (squash) November 12, 2024 05:31
@renovate renovate bot force-pushed the renovate/major-phpstan-packages branch from a054f78 to 10ede88 Compare November 15, 2024 10:47
@renovate renovate bot changed the title Update PHPStan packages to v2 (major) Update PHPStan packages (major) Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants