Merge pull request #25152 from nextcloud/backport/25138/stable20
[stable20] Fix comparison of PHP versions
This commit is contained in:
commit
71f57e0b5e
|
@ -2618,8 +2618,9 @@
|
||||||
</InvalidReturnType>
|
</InvalidReturnType>
|
||||||
</file>
|
</file>
|
||||||
<file src="apps/user_ldap/lib/Mapping/AbstractMapping.php">
|
<file src="apps/user_ldap/lib/Mapping/AbstractMapping.php">
|
||||||
<ImplicitToStringCast occurrences="1">
|
<ImplicitToStringCast occurrences="2">
|
||||||
<code>$qb->createNamedParameter($fdns, QueryBuilder::PARAM_STR_ARRAY)</code>
|
<code>$qb->createNamedParameter($dnList, QueryBuilder::PARAM_STR_ARRAY)</code>
|
||||||
|
<code>$qb->createNamedParameter($fdnsSlice, QueryBuilder::PARAM_STR_ARRAY)</code>
|
||||||
</ImplicitToStringCast>
|
</ImplicitToStringCast>
|
||||||
</file>
|
</file>
|
||||||
<file src="apps/user_ldap/lib/Proxy.php">
|
<file src="apps/user_ldap/lib/Proxy.php">
|
||||||
|
|
|
@ -113,12 +113,12 @@ class AppFetcher extends Fetcher {
|
||||||
$phpVersion = $versionParser->getVersion($release['rawPhpVersionSpec']);
|
$phpVersion = $versionParser->getVersion($release['rawPhpVersionSpec']);
|
||||||
$minPhpVersion = $phpVersion->getMinimumVersion();
|
$minPhpVersion = $phpVersion->getMinimumVersion();
|
||||||
$maxPhpVersion = $phpVersion->getMaximumVersion();
|
$maxPhpVersion = $phpVersion->getMaximumVersion();
|
||||||
$minPhpFulfilled = $minPhpVersion === '' || $this->compareVersion->isCompatible(
|
$minPhpFulfilled = $minPhpVersion === '' || version_compare(
|
||||||
PHP_VERSION,
|
PHP_VERSION,
|
||||||
$minPhpVersion,
|
$minPhpVersion,
|
||||||
'>='
|
'>='
|
||||||
);
|
);
|
||||||
$maxPhpFulfilled = $maxPhpVersion === '' || $this->compareVersion->isCompatible(
|
$maxPhpFulfilled = $maxPhpVersion === '' || version_compare(
|
||||||
PHP_VERSION,
|
PHP_VERSION,
|
||||||
$maxPhpVersion,
|
$maxPhpVersion,
|
||||||
'<='
|
'<='
|
||||||
|
|
Loading…
Reference in New Issue