|
17 | 17 | "psr/log": "^3.0" |
18 | 18 | }, |
19 | 19 | "require-dev": { |
| 20 | + "codeigniter/phpstan-codeigniter": "^1.4", |
20 | 21 | "fakerphp/faker": "^1.9", |
21 | 22 | "kint-php/kint": "^5.0.4", |
22 | 23 | "mikey179/vfsstream": "^1.6", |
23 | 24 | "nexusphp/tachycardia": "^2.0", |
| 25 | + "phpstan/extension-installer": "^1.4", |
| 26 | + "phpstan/phpstan": "^1.11", |
| 27 | + "phpstan/phpstan-strict-rules": "^1.6", |
24 | 28 | "phpunit/phpcov": "^9.0.2", |
25 | 29 | "phpunit/phpunit": "^10.5.16", |
26 | | - "predis/predis": "^1.1 || ^2.0" |
| 30 | + "predis/predis": "^1.1 || ^2.0", |
| 31 | + "rector/rector": "1.2.1" |
27 | 32 | }, |
28 | 33 | "replace": { |
29 | 34 | "codeigniter4/framework": "self.version" |
|
61 | 66 | }, |
62 | 67 | "autoload-dev": { |
63 | 68 | "psr-4": { |
64 | | - "CodeIgniter\\": "tests/system/" |
| 69 | + "CodeIgniter\\": "tests/system/", |
| 70 | + "Utils\\": "utils/src/" |
65 | 71 | } |
66 | 72 | }, |
67 | 73 | "config": { |
| 74 | + "allow-plugins": { |
| 75 | + "phpstan/extension-installer": true |
| 76 | + }, |
68 | 77 | "optimize-autoloader": true, |
69 | 78 | "preferred-install": "dist", |
70 | 79 | "sort-packages": true |
|
75 | 84 | } |
76 | 85 | }, |
77 | 86 | "scripts": { |
78 | | - "post-autoload-dump": [ |
79 | | - "@composer update --working-dir=utils" |
80 | | - ], |
81 | 87 | "post-update-cmd": [ |
82 | 88 | "CodeIgniter\\ComposerScripts::postUpdate" |
83 | 89 | ], |
| 90 | + "post-autoload-dump": [ |
| 91 | + "@composer update --working-dir=utils" |
| 92 | + ], |
84 | 93 | "analyze": [ |
85 | 94 | "Composer\\Config::disableProcessTimeout", |
86 | | - "bash -c \"XDEBUG_MODE=off utils/vendor/bin/phpstan analyse\"", |
87 | | - "utils/vendor/bin/rector process --dry-run" |
| 95 | + "bash -c \"XDEBUG_MODE=off vendor/bin/phpstan analyse\"", |
| 96 | + "vendor/bin/rector process --dry-run" |
88 | 97 | ], |
89 | 98 | "cs": [ |
90 | 99 | "Composer\\Config::disableProcessTimeout", |
|
0 commit comments