Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 11, 2024

This PR contains the following updates:

Package Change Age Confidence
nunomaduro/larastan ^2.0.1 -> ^3.0.0 age confidence
phpstan/phpstan-deprecation-rules ^1.0 -> ^2.0 age confidence
phpstan/phpstan-phpunit ^1.0 -> ^2.0 age confidence

Release Notes

larastan/larastan (nunomaduro/larastan)

v3.8.0: 3.8.0

Compare Source

What's Changed

Added

Add optional phpMyAdmin SQL parser integration by @​canvural in #​2388

Larastan can now detect automatically if you have phpmyadmin/sql-parser package and use that to parse your squashed database migrations. This parser package has better support for different SQL keywords. Note: The package has GPL 2 license. Meaning if you install it and distribute your app with it you also need to have GPL 2 licensed application. But generally this is not a problem because you should install Larastan and the sql-parser package as a development dependency and remove these development dependencies while deploying your application to production.

Treat unsigned database columns as non-negative-int 52aa393

Fixed

  • fix: add int to Enumerable::pluck argument 974100d
  • fix: cache model casts 0ea3de7
  • chore: use cached parser for parsing migrations 8245ac3

Internal

Full Changelog: larastan/larastan@v3.7.2...v3.8.0

v3.7.2: 3.7.2

Compare Source

What's Changed

Added

Fixed

Full Changelog: larastan/larastan@v3.7.1...v3.7.2

v3.7.1: 3.7.1

Compare Source

What's Changed

Added

Full Changelog: larastan/larastan@v3.7.0...v3.7.1

v3.7.0: 3.7.0

Compare Source

What's Changed

Added

Fixed

New Contributors

Full Changelog: larastan/larastan@v3.6.1...v3.7.0

v3.6.1

Compare Source

What's Changed

Fixed

Documentation

New Contributors

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

v3.6.0

Compare Source

Added 🪄

  • [3.x] getCountForPagination as a pass-thru for Laravel versions >= 12.15 by @​cosmastech in #​2301
  • [3.x] feat: add new rule to detect unnecessary Enumerable::toArray() calls by @​calebdw in #​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) fd16758

Internal ⚙️

  • Fixed PHPUnit deprecations 6431d01

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

  • Add fallback to existing classes/interfaces for improved type resolution by @​AJenbo in #​2223
  • [3.x] feat(config): allow glob paths for several config values by @​pataar in #​2271

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.
phpstan/phpstan-deprecation-rules (phpstan/phpstan-deprecation-rules)

v2.0.3

Compare Source

  • 468e02c - Remove UsageOfDeprecatedCastRule in favour of it already being implemented in PHPStan via RestrictedMethodUsageExtension
  • ea25caa - Fix UsageOfDeprecatedCastRule - it reported all casts, not just (string)

v2.0.2

Compare Source

  • 9d8e7d4 - Implement RestrictedClassConstantUsageExtension
  • 9e96248 - Implement RestrictedPropertyUsageExtension
  • 3562b56 - Implement RestrictedFunctionUsageExtension
  • ce7a039 - Simplification
  • 223f1ab - Replace TypeHintDeprecated*Rule with RestrictedDeprecatedClassNameUsageExtension
  • 13d3746 - Simplification
  • 09f067c - Fixes
  • e5d941d - Restore original CallToDeprecatedStaticMethodRuleTest
  • 0deffb7 - Implement RestrictedClassNameUsageExtension
  • 15f1d89 - RestrictedMethodUsageExtension is called for static methods too
  • 0494a38 - Take advantage of RestrictedMethodUsageExtension
  • 96f9357 - Update metcalfc/changelog-generator action to v4.6.2
  • 775b713 - Readme: mention custom deprecation attribute
  • adf5e23 - Update metcalfc/changelog-generator action to v4.5.0
  • d3fb1e8 - Update LICENSE

v2.0.1

Compare Source

  • 1cc1259 - Bleeding edge - CallWithDeprecatedIniOptionRule

v2.0.0

Compare Source

  • 81833b5 - Removed always true PHP_VERSION_ID condition
  • f4a969d - Merge branch '1.2.x' into 2.0.x
  • 0ccccb1 - selectSingle() is being deprecated
  • 392bbe7 - Updates for PHPStan 2.0 changes
  • 89572d5 - Merge branch '1.2.x' into 2.0.x
  • 398e2e2 - Merge remote-tracking branch 'origin/1.2.x' into 2.0.x
  • 4590cf6 - Update build-cs
  • 681b2db - Stop testing PHP 7.2 and 7.3
  • 0e1d78a - Open 2.0.x
phpstan/phpstan-phpunit (phpstan/phpstan-phpunit)

v2.0.8

Compare Source

  • 2fe9fbe - Fix AssertSameWithCountRule for recursive count()
  • d935297 - Fix "Unexpected input(s) 'extensions', valid inputs are ['php-version', 'php-extensions', 'build-infection-path']"
  • 8532ceb - Make AssertSameNullExpectedRule auto-fixable
  • a4abfc1 - Use TypeSystem in AssertSameBooleanExpectedRule
  • 36cb9a6 - Make AssertSameBooleanExpectedRule auto-fixable
  • 450bfc0 - Added assertArrayHasKey() expectations
  • 033f690 - PHPUnit 9.x/10.x does not at all support named arguments from data-providers
  • 758d343 - Refactor PHPUnitVersionDetector to ease different major version checks
  • dd87f2e - Assert*Rules: Do cheap checks first (#​247)
  • 5c89d74 - Ignore missingType.iterableValue for data-providers
  • 1fbc321 - move analyse-paths into phpstan.neon
  • 11f3ada - Fix mutation testing on dev branch (#​244)
  • 53e33fc - Setup mutation testing
  • 12676a7 - One more test
  • c81e395 - Fix memory consumption in DataProviderDataRule
  • 61860a6 - Implement DataProviderDataRule
  • 39950c7 - Preparational refactoring for DataProviderDataRule
  • c54a269 - Narrow too wide return type
  • 9ec3fa9 - Modernize code examples in README.md
  • b1df1f5 - chore(deps): update actions/checkout action to v5
  • 1d7eb7e - chore(deps): update eomm/why-don-t-you-tweet action to v2

v2.0.7

Compare Source

  • 9a9b161 - Make AssertEqualsIsDiscouragedRule auto-fixable
  • 2e07610 - Check isFirstClassCallable before accessing getArgs
  • 22c6949 - Make phpunit.dataProviderStatic auto-fixable
  • d35895e - chore(deps): update metcalfc/changelog-generator action to v4.6.2

v2.0.6

Compare Source

  • 6b92469 - Fix build
  • 0aef32f - Improve logic MockMethodCallRule to search for method even on wrong type

v2.0.5

Compare Source

  • 4d2b44b - InvocationMocker class no longer exists
  • 1f36fc5 - Use DataProvider attribute
  • bf031ae - Test PHPUnit v12
  • 40fbbc1 - chore(deps): update metcalfc/changelog-generator action to v4.5.0
  • 1a07095 - Add non regression test for #​222
  • eb88670 - Always install nikic/php-parser v5
  • 19f8059 - Do not generate code coverage
  • 630aa99 - Remove deprecated assert
  • 342b6c1 - Data providers must be static
  • 846d161 - Test multiple PHPUnit versions
  • 855b82c - Remove config.platform
  • 0f857bf - Introduce phpstan-deprecation-rules
  • 17bbfd3 - Update LICENSE

v2.0.4

Compare Source

  • d09e152 - Fix error message for "assertNotEquals" usage referencing "assertSame" and "assertEquals"

v2.0.3

Compare Source

  • e32ac65 - Support assertNotEquals in AssertEqualsIsDiscouragedRule

v2.0.2

Compare Source

  • 2cedfb7 - Merge remote-tracking branch 'origin/1.4.x' into 2.0.x
  • 10880da - Implement AssertEqualsIsDiscouragedRule (#​216)
  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x

v2.0.1

Compare Source

  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x

v2.0.0

Compare Source

  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
  • 146d9c3 - Test newer PHP versions
  • bb6bec0 - Pin build-cs

Configuration

📅 Schedule: 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.

👻 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.

@renovate renovate bot changed the title Update PHPStan packages to v2 (major) Update PHPStan packages (major) Nov 15, 2024
@renovate renovate bot force-pushed the renovate/major-phpstan-packages branch from 25c4f59 to db46668 Compare November 15, 2024 12:56
@renovate renovate bot force-pushed the renovate/major-phpstan-packages branch from db46668 to e7e1f78 Compare August 10, 2025 13:51
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.

1 participant