Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/lint-php-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Set up php8.1
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
with:
php-version: 8.1
php-version: 8.2
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
coverage: none
ini-file: development
Expand Down
8 changes: 6 additions & 2 deletions lib/public/ServerVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@

namespace OCP;

use OCP\AppFramework\Attribute\Consumable;

/**
* @since 31.0.0
*/
class ServerVersion {
#[Consumable(since: '31.0.0')]
readonly class ServerVersion {

/** @var int[] */
private array $version;
private string $versionString;
private string $build;
Expand Down Expand Up @@ -59,6 +63,7 @@ public function getPatchVersion(): int {
}

/**
* @return int[]
* @since 31.0.0
*/
public function getVersion(): array {
Expand Down Expand Up @@ -103,6 +108,5 @@ public function getHumanVersion(): string {
$version .= ' Build:' . $build;
}
return $version;

}
}
Loading