diff --git a/README.md b/README.md index c64984a..bd620ec 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 9ef75ac..bb6b3b3 100644 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/dist/phpstan.dist.neon b/dist/phpstan.dist.neon index 112fca9..aa37f14 100644 --- a/dist/phpstan.dist.neon +++ b/dist/phpstan.dist.neon @@ -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: