Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check code with php 8.1 #1691

Merged
merged 3 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 7 additions & 2 deletions .github/workflows/api-php-static-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ jobs:
php-versions: [ '8.0' ]
nextcloud: [ 'stable23' ]
database: [ 'sqlite' ]
include:
- php-versions: 8.1
nextcloud: pre-release
database: sqlite
experimental: true
name: "phpstan: Nextcloud ${{ matrix.nextcloud }}"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up php
uses: shivammathur/setup-php@master
with:
php-version: 7.4
php-version: ${{ matrix.php-versions }}
Grotax marked this conversation as resolved.
Show resolved Hide resolved
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: none

Expand All @@ -44,7 +49,7 @@ jobs:

- name: PHPCS
working-directory: ../server/apps/news
run: pwd && make phpcs #debug pwd
run: make phpcs

- name: PHPStan
working-directory: ../server/apps/news
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
},
"require": {
"php": "^7.2 || ~8.0",
"ezyang/htmlpurifier": "^4.13.0",
"pear/net_url2": "2.2.2",
"riimu/kit-pathjoin": "1.2.0",
"debril/feed-io": "^v4.7.9",
"arthurhoaro/favicon": "^1.3.2",
"ezyang/htmlpurifier": "^4.14.0",
"pear/net_url2": "^2.2.2",
"riimu/kit-pathjoin": "^1.2.0",
"debril/feed-io": "^v4.9.12",
"arthurhoaro/favicon": "^1.3.3",
"fivefilters/readability.php": "^2.1",
"ext-json": "*",
"ext-simplexml": "*",
Expand All @@ -55,14 +55,14 @@
},
"require-dev": {
"phpunit/phpunit": "9.5.*",
"squizlabs/php_codesniffer": "^3.6.1",
"phpstan/phpstan": "^0.12.99",
"phpstan/phpstan-doctrine": "^0.12.44",
"phpstan/phpstan-strict-rules": "^0.12.11",
"phpstan/phpstan-phpunit": "^0.12.22",
"squizlabs/php_codesniffer": "^3.6.2",
"phpstan/phpstan": "^1.4.0",
"phpstan/phpstan-doctrine": "^1.2.11",
"phpstan/phpstan-strict-rules": "^1.1.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/extension-installer": "^1.1.0",
"guzzlehttp/guzzle": "^7.3.0",
"doctrine/dbal": "^3.1.3",
"doctrine/dbal": "^3.3.2",
"symfony/console": "^4.4.19",
"psr/log": "^1.1.0"
},
Expand Down
93 changes: 49 additions & 44 deletions composer.lock

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

2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
treatPhpDocTypesAsCertain: false
bootstrapFiles:
- %currentWorkingDirectory%/../../lib/base.php
excludes_analyse:
excludePaths:
- %currentWorkingDirectory%/lib/Migration/*.php
- %currentWorkingDirectory%/lib/AppInfo/Application.php
- %currentWorkingDirectory%/lib/Fetcher/Client/Legacy*.php