Add some more return types
parent
6da38f83a0
commit
225b4d7c27
|
@ -77,7 +77,7 @@ class GenericRule extends Rule
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString(): string
|
||||||
{
|
{
|
||||||
$result = $this->isDisabled() ? 'disabled(' : '(';
|
$result = $this->isDisabled() ? 'disabled(' : '(';
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ class MultiConflictRule extends Rule
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString(): string
|
||||||
{
|
{
|
||||||
// TODO multi conflict?
|
// TODO multi conflict?
|
||||||
$result = $this->isDisabled() ? 'disabled(multi(' : '(multi(';
|
$result = $this->isDisabled() ? 'disabled(multi(' : '(multi(';
|
||||||
|
|
|
@ -108,7 +108,7 @@ class Rule2Literals extends Rule
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString(): string
|
||||||
{
|
{
|
||||||
$result = $this->isDisabled() ? 'disabled(' : '(';
|
$result = $this->isDisabled() ? 'disabled(' : '(';
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,7 @@ class Link
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString(): string
|
||||||
{
|
{
|
||||||
return $this->source.' '.$this->description.' '.$this->target.' ('.$this->constraint.')';
|
return $this->source.' '.$this->description.' '.$this->target.' ('.$this->constraint.')';
|
||||||
}
|
}
|
||||||
|
|
|
@ -327,8 +327,8 @@ class PlatformRepository extends ArrayRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
// ICU TZData version => 2019c
|
// ICU TZData version => 2019c
|
||||||
if (Preg::isMatch('/^ICU TZData version => (?<version>.*)$/im', $info, $zoneinfoMatches)) {
|
if (Preg::isMatch('/^ICU TZData version => (?<version>.*)$/im', $info, $zoneinfoMatches) && null !== ($version = Version::parseZoneinfoVersion($zoneinfoMatches['version']))) {
|
||||||
$this->addLibrary('icu-zoneinfo', Version::parseZoneinfoVersion($zoneinfoMatches['version']), 'zoneinfo ("Olson") database for icu');
|
$this->addLibrary('icu-zoneinfo', $version, 'zoneinfo ("Olson") database for icu');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add a separate version for the CLDR library version
|
// Add a separate version for the CLDR library version
|
||||||
|
|
Loading…
Reference in New Issue