|
10 | 10 | "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", |
11 | 11 | "cs:check": "php-cs-fixer fix --dry-run --diff", |
12 | 12 | "cs:fix": "php-cs-fixer fix", |
13 | | - "psalm": "psalm.phar --no-cache", |
14 | | - "test:unit": "phpunit --config tests/phpunit.xml" |
| 13 | + "psalm": "psalm --no-cache", |
| 14 | + "psalm:update-baseline": "psalm --threads=1 --update-baseline", |
| 15 | + "psalm:update-baseline:force": "psalm --threads=1 --update-baseline --set-baseline=psalm-baseline.xml", |
| 16 | + "test:unit": "phpunit --config tests/phpunit.xml", |
| 17 | + "post-install-cmd": [ |
| 18 | + "@composer bin all update --ansi", |
| 19 | + "grep -r 'OCA\\\\Replicate\\\\Vendor' ./vendor || vendor/bin/php-scoper add-prefix --prefix='OCA\\Replicate\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"", |
| 20 | + "composer dump-autoload", |
| 21 | + "composer install --no-scripts" |
| 22 | + ], |
| 23 | + "post-update-cmd": [ |
| 24 | + "@composer bin all update --ansi", |
| 25 | + "grep -r 'OCA\\\\Replicate\\\\Vendor' ./vendor || vendor/bin/php-scoper add-prefix --prefix='OCA\\Replicate\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"", |
| 26 | + "composer dump-autoload", |
| 27 | + "composer update --no-scripts" |
| 28 | + ] |
15 | 29 | }, |
16 | 30 | "require": { |
17 | | - "php": "^8.1" |
| 31 | + "php": ">= 8.2", |
| 32 | + "bamarni/composer-bin-plugin": "^1.8", |
| 33 | + "fileeye/pel": "^0.12.0", |
| 34 | + "james-heinrich/getid3": "^1.9" |
18 | 35 | }, |
19 | 36 | "require-dev": { |
20 | | - "nextcloud/coding-standard": "^1.1", |
21 | | - "psalm/phar": "6.*", |
22 | | - "nextcloud/ocp": "dev-master", |
23 | | - "phpunit/phpunit": "^9.5" |
| 37 | + "nextcloud/ocp": "dev-master" |
24 | 38 | }, |
25 | 39 | "config": { |
| 40 | + "allow-plugins": { |
| 41 | + "bamarni/composer-bin-plugin": true, |
| 42 | + "composer/package-versions-deprecated": true |
| 43 | + }, |
26 | 44 | "platform": { |
27 | | - "php": "8.1.0" |
| 45 | + "php": "8.2" |
| 46 | + } |
| 47 | + }, |
| 48 | + "extra": { |
| 49 | + "bamarni-bin": { |
| 50 | + "bin-links": true, |
| 51 | + "target-directory": "vendor-bin", |
| 52 | + "forward-command": true |
28 | 53 | } |
29 | 54 | } |
30 | 55 | } |
0 commit comments