diff options
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 2 | ||||
-rw-r--r-- | lib/private/App/AppStore/Version/VersionParser.php | 2 | ||||
-rw-r--r-- | lib/private/App/DependencyAnalyzer.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 35bec10f5ae..47bdece372d 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -99,7 +99,7 @@ class AppFetcher extends Fetcher { foreach ($app['releases'] as $release) { // Exclude all nightly and pre-releases if required if (($allowNightly || $release['isNightly'] === false) - && ($allowPreReleases || strpos($release['version'], '-') === false)) { + && ($allowPreReleases || !str_contains($release['version'], '-'))) { // Exclude all versions not compatible with the current version try { $versionParser = new VersionParser(); diff --git a/lib/private/App/AppStore/Version/VersionParser.php b/lib/private/App/AppStore/Version/VersionParser.php index 6a369b1cb6e..2b88399b9fd 100644 --- a/lib/private/App/AppStore/Version/VersionParser.php +++ b/lib/private/App/AppStore/Version/VersionParser.php @@ -64,7 +64,7 @@ class VersionParser { if (!$this->isValidVersionString($firstVersionNumber)) { break; } - if (strpos($firstVersion, '>') === 0) { + if (str_starts_with($firstVersion, '>')) { return new Version($firstVersionNumber, ''); } return new Version('', $firstVersionNumber); diff --git a/lib/private/App/DependencyAnalyzer.php b/lib/private/App/DependencyAnalyzer.php index aa136f0e965..3bdc551ea5a 100644 --- a/lib/private/App/DependencyAnalyzer.php +++ b/lib/private/App/DependencyAnalyzer.php @@ -383,7 +383,7 @@ class DependencyAnalyzer { case '9.1': return '10'; default: - if (strpos($version, '9.1.') === 0) { + if (str_starts_with($version, '9.1.')) { $version = '10.0.' . substr($version, 4); } return $version; |