Skip to content
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

chore(deps): upgrade Larastan to v3 #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ You must commit this new directory and the `phpstan.dist.neon` config file.

_[Why do we install PHPStan into its own directory?](https://github.com/FriendsOfPHP/PHP-CS-Fixer#installation)_

## Setup

See [the upgrade guide on PHPStan](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md#correct-return-types-for-model-relation-methods) for a Rector rule that should be run before using this config.

## Usage

```shell
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "stickee/larastan-config",
"description": "stickee's Larastan config",
"require": {
"php": "^8.1",
"ekino/phpstan-banned-code": "^1.0",
"larastan/larastan": "2.9.8",
"phpstan/phpstan": "1.11.7",
"phpstan/phpstan-mockery": "^1.1"
"php": "^8.2",
"ekino/phpstan-banned-code": "^3.0",
"larastan/larastan": "^3.0.2",
"phpstan/phpstan-mockery": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0"
},
"license": "MIT",
"authors": [
Expand Down
2 changes: 2 additions & 0 deletions dist/phpstan.dist.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
includes:
- ./tools/phpstan/vendor/larastan/larastan/extension.neon
- ./tools/phpstan/vendor/ekino/phpstan-banned-code/extension.neon
- ./tools/phpstan/vendor/nesbot/carbon/extension.neon
- ./tools/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ./tools/phpstan/vendor/phpstan/phpstan-mockery/extension.neon

parameters:
Expand Down