|
9 | 9 | } |
10 | 10 | ], |
11 | 11 | "require": { |
12 | | - "laravel/framework": "^8.0" |
| 12 | + "laravel/framework": "^9.4", |
| 13 | + "phpstan/phpstan": "^1.4" |
13 | 14 | }, |
14 | 15 | "autoload": { |
15 | 16 | "psr-4": { |
|
24 | 25 | "require-dev": { |
25 | 26 | "mockery/mockery": "^1.2", |
26 | 27 | "phpunit/phpunit": "^9.0", |
27 | | - "orchestra/testbench": "^6.18", |
28 | | - "brainmaestro/composer-git-hooks": "^2.8", |
| 28 | + "orchestra/testbench": "^7.1", |
29 | 29 | "friendsofphp/php-cs-fixer": "^3.0", |
30 | 30 | "vimeo/psalm": "^4.10", |
31 | 31 | "jetbrains/phpstorm-attributes": "^1.0" |
|
39 | 39 | "hooks": { |
40 | 40 | "pre-commit": [ |
41 | 41 | "composer check-style", |
| 42 | + "composer phpstan", |
42 | 43 | "composer test" |
43 | 44 | ], |
44 | 45 | "pre-push": [ |
45 | | - "composer test" |
| 46 | + "composer check-style" |
46 | 47 | ] |
47 | 48 | } |
48 | 49 | }, |
|
62 | 63 | "check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi", |
63 | 64 | "fix-style": "php-cs-fixer fix --using-cache=no --ansi", |
64 | 65 | "test": "phpunit --colors", |
| 66 | + "phpstan": "phpstan analyse", |
65 | 67 | "psalm": "psalm --show-info=true --no-cache", |
66 | 68 | "psalm-fix": "psalm --no-cache --alter --issues=MissingReturnType,MissingParamType" |
67 | 69 | }, |
68 | 70 | "scripts-descriptions": { |
69 | 71 | "test": "Run all tests.", |
70 | 72 | "check-style": "Run style checks (only dry run - no fixing!).", |
71 | 73 | "fix-style": "Run style checks and fix violations." |
| 74 | + }, |
| 75 | + "config": { |
| 76 | + "allow-plugins": { |
| 77 | + "composer/package-versions-deprecated": true |
| 78 | + } |
72 | 79 | } |
73 | 80 | } |
0 commit comments