mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
N°5122 - Update libs to new PHP requirements
This commit is contained in:
@@ -107,5 +107,11 @@
|
||||
"allow-plugins": {
|
||||
"bamarni/composer-bin-plugin": true
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
"forward-command": false,
|
||||
"bin-links": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="PSR12 (adapted for PHP 5.6+)">
|
||||
<rule ref="PSR12">
|
||||
<!-- Ignore this PHP 7.1+ sniff as long as we support PHP 5.6+ -->
|
||||
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
|
||||
|
||||
<!-- This sniff doesn't ignore comment blocks -->
|
||||
<!--
|
||||
<exclude name="Generic.Files.LineLength"/>
|
||||
-->
|
||||
</rule>
|
||||
</ruleset>
|
||||
@@ -3544,11 +3544,11 @@ EOL;
|
||||
// 1. op[op name][left type][right type]
|
||||
// 2. op[left type][right type] (passing the op as first arg)
|
||||
// 3. op[op name]
|
||||
if (\is_callable([$this, $fn = "op${ucOpName}${ucLType}${ucRType}"])) {
|
||||
if (\is_callable([$this, $fn = "op{$ucOpName}{$ucLType}{$ucRType}"])) {
|
||||
$out = $this->$fn($left, $right, $shouldEval);
|
||||
} elseif (\is_callable([$this, $fn = "op${ucLType}${ucRType}"])) {
|
||||
} elseif (\is_callable([$this, $fn = "op{$ucLType}{$ucRType}"])) {
|
||||
$out = $this->$fn($op, $left, $right, $shouldEval);
|
||||
} elseif (\is_callable([$this, $fn = "op${ucOpName}"])) {
|
||||
} elseif (\is_callable([$this, $fn = "op{$ucOpName}"])) {
|
||||
$out = $this->$fn($left, $right, $shouldEval);
|
||||
} else {
|
||||
$out = null;
|
||||
@@ -3892,7 +3892,7 @@ EOL;
|
||||
|
||||
// Special functions overriding a CSS function are case-insensitive. We normalize them as lowercase
|
||||
// to avoid the deprecation warning about the wrong case being used.
|
||||
if ($lowercasedName === 'min' || $lowercasedName === 'max') {
|
||||
if ($lowercasedName === 'min' || $lowercasedName === 'max' || $lowercasedName === 'rgb' || $lowercasedName === 'rgba' || $lowercasedName === 'hsl' || $lowercasedName === 'hsla') {
|
||||
$normalizedName = $lowercasedName;
|
||||
}
|
||||
|
||||
@@ -8769,7 +8769,7 @@ will be an error in future versions of Sass.\n on line $line of $fname";
|
||||
protected function libNth($args)
|
||||
{
|
||||
$list = $this->coerceList($args[0], ',', false);
|
||||
$n = $this->assertNumber($args[1])->getDimension();
|
||||
$n = $this->assertInteger($args[1]);
|
||||
|
||||
if ($n > 0) {
|
||||
$n--;
|
||||
@@ -8784,7 +8784,7 @@ will be an error in future versions of Sass.\n on line $line of $fname";
|
||||
protected function libSetNth($args)
|
||||
{
|
||||
$list = $this->coerceList($args[0]);
|
||||
$n = $this->assertNumber($args[1])->getDimension();
|
||||
$n = $this->assertInteger($args[1]);
|
||||
|
||||
if ($n > 0) {
|
||||
$n--;
|
||||
|
||||
@@ -19,5 +19,5 @@ namespace ScssPhp\ScssPhp;
|
||||
*/
|
||||
class Version
|
||||
{
|
||||
const VERSION = '1.10.3';
|
||||
const VERSION = '1.10.5';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user