We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05847dc commit 56ecfa2Copy full SHA for 56ecfa2
src/PhpSpreadsheet/Style/NumberFormat/Wizard/CurrencyNegative.php
@@ -4,11 +4,17 @@
4
5
enum CurrencyNegative
6
{
7
+ // PHPCompatibility (versions check) has an error which
8
+ // causes it to flag the use of $this below as erroneous.
9
+ // They fixed it in their development branch in October 2022.
10
+ // But they haven't had a release since 2019!
11
+ // Hence the phpcs disable statment below.
12
case minus;
13
case redMinus;
14
case parentheses;
15
case redParentheses;
16
17
+ // phpcs:disable PHPCompatibility.Variables.ForbiddenThisUseContexts
18
public function start(): string
19
20
return match ($this) {
@@ -32,4 +38,5 @@ public function color(): string
32
38
self::parentheses, self::minus => '',
33
39
};
34
40
}
41
+ // phpcs:enable
35
42
0 commit comments