Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: ignore handled deprecation notice from phpstan
Browse files Browse the repository at this point in the history
The code already uses the new methods if available, the deprecated
method is used only on older yet still supported Nextcloud versions.

Signed-off-by: Arthur Schiwon <[email protected]>
blizzz committed Jan 5, 2025

Verified

This commit was signed with the committer’s verified signature.
blizzz Arthur Schiwon
1 parent 59446ed commit 0409621
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
@@ -61,6 +61,7 @@ public function index(): TemplateResponse
if (class_exists('\OCP\ServerVersion')) {
$version = (new \OCP\ServerVersion())->getMajorVersion();
} else {
/* @phpstan-ignore staticMethod.deprecated */
$version = Util::getVersion()[0];
}

1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
bootstrapFiles:
- %currentWorkingDirectory%/../../lib/base.php
excludePaths:

0 comments on commit 0409621

Please sign in to comment.