Skip to content

Commit 3578ef5

Browse files
committed
Update PHP Stan and fix some issues
1 parent bad5e01 commit 3578ef5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require-dev": {
1717
"phpunit/phpunit": "^8.0 | ^9.0",
1818
"squizlabs/php_codesniffer": "^3.2",
19-
"phpstan/phpstan": "^0.12"
19+
"phpstan/phpstan": "^1.2.0"
2020
},
2121
"require": {
2222
"php" : ">=7.1",

src/Style/DefaultStyle.php

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
class DefaultStyle implements ItemStyle
1010
{
11-
private const DEFAULT_STYLES = [
12-
];
13-
1411
public function hasChangedFromDefaults() : bool
1512
{
1613
return true;

src/Util/ColourUtil.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public static function map256To8(int $colourCode) : string
310310
public static function validateColour(Terminal $terminal, string $colour, string $fallback = null) : string
311311
{
312312
if (!ctype_digit($colour)) {
313-
return static::validateColourName($colour);
313+
return self::validateColourName($colour);
314314
}
315315

316316
Assertion::between($colour, 0, 255, 'Invalid colour code');
@@ -320,7 +320,7 @@ public static function validateColour(Terminal $terminal, string $colour, string
320320
}
321321

322322
if ($fallback !== null) {
323-
return static::validateColourName($fallback);
323+
return self::validateColourName($fallback);
324324
}
325325

326326
return static::map256To8((int) $colour);

0 commit comments

Comments
 (0)