Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"psr/log": "^1.0.4|^2|^3"
},
"require-dev": {
"psalm/phar": "^5.26.1",
"nextcloud/ocp": "dev-stable32",
"roave/security-advisories": "dev-master"
},
"autoload": {
Expand All @@ -71,8 +71,9 @@
],
"lint-8.2-or-earlier": "[ $(php -r \"echo PHP_VERSION_ID;\") -ge 80300 ] || find . -type f -name '*.php' -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/stubs/*' -print0 | xargs -0 -n1 -P$(nproc) php -l",
"lint-8.3-or-later": "[ $(php -r \"echo PHP_VERSION_ID;\") -lt 80300 ] || find . -type f -name '*.php' -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/stubs/*' -print0 | xargs -0 -n200 -P$(nproc) php -l",
"psalm": "psalm.phar",
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType",
"psalm": "vendor-bin/psalm/vendor/psalm/phar/psalm.phar --threads=1",
"psalm:clear": "vendor-bin/psalm/vendor/psalm/phar/psalm.phar --clear-cache && vendor-bin/psalm/vendor/psalm/phar/psalm.phar --clear-cache --clear-global-cache",
"psalm:update-baseline": "vendor-bin/psalm/vendor/psalm/phar/psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
"post-install-cmd": [
"@composer bin all install --ansi",
"\"vendor/bin/mozart\" compose",
Expand Down
199 changes: 182 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
xsi:schemaLocation="https://getpsalm.org/schema/config"
errorBaseline="tests/psalm-baseline.xml"
phpVersion="8.1"
findUnusedCode="false"
>
<projectFiles>
<directory name="lib" />
Expand All @@ -22,7 +23,7 @@
<extraFiles>
<directory name="vendor" />
<directory name="lib/Vendor" />
<directory name="vendor-bin/psalm-stubs" />
<directory name="vendor-bin/psalm/vendor/psr" />
</extraFiles>
<stubs>
<file name="tests/stubs/php-polyfill.php" />
Expand Down
Loading
Loading