|
40 | 40 | } |
41 | 41 | ], |
42 | 42 | "require": { |
43 | | - "php": ">=8.1", |
44 | | - "symfony/process": "^6.4 || ^7.0 || ^8.0" |
| 43 | + "php": ">=8.2", |
| 44 | + "symfony/process": "^7.4 || ^8.0" |
45 | 45 | }, |
46 | 46 | "require-dev": { |
47 | 47 | "adamwojs/php-cs-fixer-phpdoc-force-fqcn": "^2.0", |
|
51 | 51 | "ergebnis/composer-normalize": "^2.50", |
52 | 52 | "ergebnis/license": "^2.7", |
53 | 53 | "ergebnis/php-cs-fixer-config": "^6.60", |
54 | | - "ergebnis/rector-rules": "^1.14", |
| 54 | + "ergebnis/phpstan-rules": "^2.13", |
| 55 | + "ergebnis/rector-rules": "^1.15", |
55 | 56 | "fakerphp/faker": "^1.24", |
| 57 | + "guanguans/monorepo-builder-worker": "^3.1", |
56 | 58 | "guanguans/php-cs-fixer-custom-fixers": "^1.2", |
| 59 | + "guanguans/phpstan-rules": "^1.1", |
57 | 60 | "guanguans/rector-rules": "^1.7", |
58 | | - "illuminate/support": "^10.49 || ^11.0 || ^12.0 || ^13.0", |
| 61 | + "illuminate/support": "^12.55 || ^13.0", |
59 | 62 | "jbelien/phpstan-sarif-formatter": "^1.2", |
60 | 63 | "mockery/mockery": "^1.6", |
61 | | - "nette/utils": "^4.0", |
62 | | - "pestphp/pest": "^2.36 || ^3.0 || ^4.0", |
63 | | - "pestphp/pest-plugin-arch": "^2.7 || ^3.0 || ^4.0", |
64 | | - "pestphp/pest-plugin-profanity": "^1.7 || ^2.0 || ^3.0 || ^4.0", |
| 64 | + "mrpunyapal/peststan": "^0.1", |
| 65 | + "mrpunyapal/rector-pest": "^0.2", |
| 66 | + "nette/utils": "^4.1", |
| 67 | + "nicksdot/phpstan-phpstorm-error-identifiers": "^0.3", |
| 68 | + "peckphp/peck": "^0.2", |
| 69 | + "pestphp/pest": "^3.8 || ^4.0", |
| 70 | + "pestphp/pest-plugin-arch": "^3.1 || ^4.0", |
| 71 | + "pestphp/pest-plugin-profanity": "^3.23 || ^4.0", |
65 | 72 | "php-mock/php-mock-phpunit": "^2.15", |
66 | | - "phpbench/phpbench": "^1.4", |
| 73 | + "phpbench/phpbench": "^1.6", |
67 | 74 | "phpstan/extension-installer": "^1.4", |
68 | | - "phpstan/phpstan": "^2.1", |
69 | 75 | "phpstan/phpstan-deprecation-rules": "^2.0", |
70 | 76 | "phpstan/phpstan-mockery": "^2.0", |
71 | 77 | "phpstan/phpstan-strict-rules": "^2.0", |
72 | 78 | "phpstan/phpstan-webmozart-assert": "^2.0", |
73 | | - "phpunit/phpunit": "^10.5 || ^11.0 || ^12.0 || ^13.0", |
| 79 | + "phpunit/phpunit": "^11.5 || ^12.0 || ^13.0", |
74 | 80 | "povils/phpmnd": "^3.6", |
| 81 | + "rector/argtyper": "^0.6", |
75 | 82 | "rector/jack": "^0.5", |
76 | | - "rector/rector": "^2.3", |
77 | 83 | "rector/swiss-knife": "^2.3", |
78 | 84 | "rector/type-perfect": "^2.1", |
| 85 | + "roave/backward-compatibility-check": "^8.14", |
| 86 | + "roave/no-floaters": "^1.13", |
79 | 87 | "shipmonk/composer-dependency-analyser": "^1.8", |
80 | 88 | "shipmonk/dead-code-detector": "^0.15", |
81 | 89 | "shipmonk/name-collision-detector": "^2.1", |
82 | 90 | "shipmonk/phpstan-baseline-per-identifier": "^2.3", |
| 91 | + "shipmonk/phpstan-rules": "^4.3", |
| 92 | + "sidz/phpstan-rules": "^0.5", |
83 | 93 | "spatie/invade": "^2.1", |
84 | 94 | "spatie/pest-plugin-snapshots": "^2.3", |
85 | 95 | "spaze/phpstan-disallowed-calls": "^4.9", |
| 96 | + "staabm/annotate-pull-request-from-checkstyle": "^1.8", |
86 | 97 | "staabm/phpstan-todo-by": "^0.3", |
| 98 | + "staabm/side-effects-detector": "^1.0", |
87 | 99 | "symfony/thanks": "^1.4", |
88 | | - "symfony/var-dumper": "^6.4 || ^7.0 || ^8.0", |
| 100 | + "symfony/var-dumper": "^7.4 || ^8.0", |
| 101 | + "symplify/coding-standard": "^13.0", |
| 102 | + "symplify/easy-coding-standard": "^13.0", |
89 | 103 | "symplify/phpstan-rules": "^14.9", |
90 | 104 | "tomasvotruba/class-leak": "^2.1", |
91 | 105 | "tomasvotruba/cognitive-complexity": "^1.0", |
| 106 | + "tomasvotruba/ctor": "^2.2", |
92 | 107 | "tomasvotruba/type-coverage": "^2.1", |
| 108 | + "tomasvotruba/unused-public": "^2.2", |
93 | 109 | "yamadashy/phpstan-friendly-formatter": "^1.4" |
94 | 110 | }, |
95 | 111 | "suggest": { |
|
137 | 153 | "target-directory": "vendor-bin" |
138 | 154 | }, |
139 | 155 | "branch-alias": { |
140 | | - "dev-master": "7.x-dev" |
| 156 | + "dev-master": "8.x-dev" |
141 | 157 | }, |
142 | 158 | "composer-normalize": { |
143 | 159 | "indent-size": 4, |
|
165 | 181 | "actionlint": "actionlint -ignore=SC2035 -ignore=SC2086 -color -oneline -verbose", |
166 | 182 | "argtyper": "@php vendor/bin/argtyper --ansi -vv", |
167 | 183 | "argtyper:add-types": "@argtyper add-types .", |
168 | | - "blade-formatter": "blade-formatter resources/views/*.blade.php resources/views/**/*.blade.php --ignore-path= --php-version=8.1 --progress", |
| 184 | + "blade-formatter": "blade-formatter resources/views/*.blade.php resources/views/**/*.blade.php --ignore-path= --php-version=8.2 --progress", |
169 | 185 | "blade-formatter:check-formatted": "@blade-formatter --check-formatted", |
170 | 186 | "blade-formatter:write": "@blade-formatter --write", |
171 | 187 | "cghooks": "@php vendor/bin/cghooks --ansi -vv", |
|
250 | 266 | "composer:unlink": "@php -r \"@unlink('vendor/bin/composer');\"", |
251 | 267 | "composer:validate": "@composer validate --check-lock --strict --ansi -vv", |
252 | 268 | "detect-collisions": "@php vendor/bin/detect-collisions examples/ src/", |
| 269 | + "ecs": "@php vendor/bin/ecs --ansi -vv", |
| 270 | + "ecs:check": "@ecs check", |
| 271 | + "ecs:check-output-format-json": "@ecs:check --output-format=json", |
| 272 | + "ecs:fix": "@ecs:check --fix", |
| 273 | + "ecs:list-checkers": "@ecs list-checkers", |
253 | 274 | "facade:lint": "@facade:update --lint", |
254 | 275 | "facade:update": "@php -f vendor/bin/facade.php -- Guanguans\\\\SoarPHP\\\\Facades\\\\SoarPHP", |
255 | 276 | "git-chglog": "git-chglog $(git describe --tags $(git rev-list --tags --max-count=1))", |
256 | 277 | "gitleaks": "gitleaks git --report-path=.build/gitleaks-report.json -v", |
257 | 278 | "gitleaks:generate-baseline": "gitleaks git --report-path=gitleaks-baseline.json -v", |
258 | | - "grumphp": [ |
259 | | - "@putenv:php", |
260 | | - "$PHP82 vendor/bin/grumphp run --ansi -vv" |
261 | | - ], |
262 | | - "jack": "@php vendor/bin/jack --ansi -vv", |
263 | | - "jack:breakpoint": "@jack breakpoint --limit=7", |
| 279 | + "grumphp": "@php vendor/bin/grumphp run --ansi -vv", |
| 280 | + "jack": "@php vendor/bin/jack", |
| 281 | + "jack:breakpoint": "@jack breakpoint --limit=8", |
264 | 282 | "jack:breakpoint-dev": "@jack:breakpoint --dev", |
265 | 283 | "jack:open-versions": "@jack open-versions --limit=99", |
266 | 284 | "jack:open-versions-dev": "@jack:open-versions --dev", |
|
284 | 302 | "mago:lint-dry-run": "@mago:lint --dry-run", |
285 | 303 | "mago:lint-list-rules": "@mago lint --list-rules", |
286 | 304 | "mago:lint-semantics-only": "@mago lint --semantics-only", |
287 | | - "monorepo-builder": [ |
288 | | - "@putenv:php", |
289 | | - "$PHP82 vendor/bin/monorepo-builder --ansi -vv" |
290 | | - ], |
| 305 | + "monorepo-builder": "@php vendor/bin/monorepo-builder --ansi -vv", |
291 | 306 | "monorepo-builder:release": [ |
292 | 307 | "@git-chglog", |
293 | 308 | "@monorepo-builder release" |
|
301 | 316 | "monorepo-builder:release-patch": "@monorepo-builder:release patch", |
302 | 317 | "monorepo-builder:release-patch-dry-run": "@monorepo-builder:release-patch --dry-run", |
303 | 318 | "neon-lint": "@php vendor/bin/neon-lint *.neon", |
304 | | - "peck": [ |
305 | | - "@putenv:php", |
306 | | - "$PHP82 vendor/bin/peck check --path=src/ --config=../../peck.json --ansi -vv" |
307 | | - ], |
| 319 | + "peck": "@php vendor/bin/peck check --path=src/ --config=peck.json --ansi -vv", |
308 | 320 | "peck:ignore-all": "@peck --ignore-all", |
309 | 321 | "peck:init": "@peck --init", |
310 | 322 | "pest": [ |
|
345 | 357 | "php-cs-fixer:list-sets": "@php-cs-fixer list-sets --ansi -vv", |
346 | 358 | "php-lint": [ |
347 | 359 | "@putenv:php", |
348 | | - "for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP81 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done", |
349 | | - "for DIR in src/ tests/; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP81 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done" |
| 360 | + "for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP82 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done", |
| 361 | + "for DIR in src/ tests/; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP82 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done" |
350 | 362 | ], |
351 | 363 | "phpbench": "@php vendor/bin/phpbench run --report=aggregate --ansi -vv", |
352 | | - "phpmnd": "@php vendor/bin/phpmnd src/ --exclude-path=Support/helpers.phpp --ignore-numbers=2,-1 --hint --progress --ansi -vv", |
| 364 | + "phpmnd": "@php vendor/bin/phpmnd src/ --exclude-path=Support/helpers.phpp --ignore-numbers=-1,2 --hint --progress --ansi -vv", |
353 | 365 | "phpstan": "@php vendor/bin/phpstan --ansi -vv", |
354 | 366 | "phpstan:analyse": "@phpstan analyse", |
355 | 367 | "phpstan:analyse-error-format-annotate-pull-request": "@php vendor/bin/phpstan --ansi -vv 'analyse' --error-format=checkstyle | vendor/bin/cs2pr --notices-as-warnings --colorize", |
|
404 | 416 | "rector:process-only-dry-run": "@rector:process-only --dry-run", |
405 | 417 | "rector:process-options": "@rector:process-clear-cache --config=rector-options.php", |
406 | 418 | "rector:process-options-dry-run": "@rector:process-options --dry-run", |
407 | | - "roave-backward-compatibility-check": [ |
408 | | - "@putenv:php", |
409 | | - "$PHP82 vendor/bin/roave-backward-compatibility-check --install-development-dependencies --ansi -vv" |
410 | | - ], |
| 419 | + "roave-backward-compatibility-check": "@php vendor/bin/roave-backward-compatibility-check --install-development-dependencies --ansi -vv", |
411 | 420 | "roave-backward-compatibility-check:format-github-actions": "@roave-backward-compatibility-check --format=github-actions", |
412 | | - "rule-doc-generator": [ |
413 | | - "@putenv:php", |
414 | | - "$PHP82 rule-doc-generator --ansi -vv" |
415 | | - ], |
| 421 | + "rule-doc-generator": "@php rule-doc-generator --ansi -vv", |
416 | 422 | "rule-doc-generator:generate": "@rule-doc-generator generate src/Support/Rectors/ --output-file=src/Support/Rectors/rules-overview.md", |
417 | 423 | "rule-doc-generator:validate": "@rule-doc-generator validate src/Support/Rectors/", |
418 | 424 | "sk": "@php vendor/bin/swiss-knife --ansi -vv", |
|
436 | 442 | "sk:search-regex": "@sk search-regex 'Guanguans.*ValetDrivers'", |
437 | 443 | "sk:split-config-per-package": "@sk split-config-per-package monorepo-builder.php", |
438 | 444 | "sk:spot-lazy-traits": "@sk spot-lazy-traits src/ --max-used=2", |
439 | | - "soar-php": "@php soar-php --ansi -vv", |
440 | | - "soar-php:app-build": [ |
441 | | - "@composer install --no-dev --no-scripts --ansi -vv", |
442 | | - "@php soar-php app:build soar-php.phar --build-version=master --ansi", |
443 | | - "@php builds/soar-php.phar list --ansi -vv", |
444 | | - "ls -lh builds/soar-php.phar", |
445 | | - "ls -lr builds/soar-php.phar" |
446 | | - ], |
447 | 445 | "soar-php:check-binary": "Guanguans\\SoarPHP\\Support\\ComposerScripts::checkSoarBinary", |
448 | 446 | "soar-php:dump-config": [ |
449 | 447 | "@soar-php:dump-yaml-config", |
|
464 | 462 | "@composer-config:disable-process-timeout", |
465 | 463 | "@php -S localhost:8123 examples/example.php" |
466 | 464 | ], |
467 | | - "testbench": "@php vendor/bin/testbench --ansi", |
468 | | - "testbench:build": "@testbench workbench:build", |
469 | | - "testbench:clear": "@testbench package:purge-skeleton", |
470 | | - "testbench:prepare": "@testbench package:discover", |
471 | | - "testbench:serve": [ |
472 | | - "@composer-config:disable-process-timeout", |
473 | | - "@testbench:build", |
474 | | - "@testbench serve" |
475 | | - ], |
476 | | - "testbench:test": [ |
477 | | - "@testbench:clear", |
478 | | - "@pest" |
479 | | - ], |
480 | 465 | "todo-lint": "! git --no-pager grep --extended-regexp --ignore-case 'todo|fixme' -- '*.php' ':!*.blade.php' ':(exclude)resources/'", |
481 | 466 | "trufflehog": "trufflehog git https://github.com/guanguans/soar-php --only-verified", |
482 | 467 | "typos": "typos --color=always --sort --verbose", |
|
0 commit comments