Skip to content

Commit 016d40c

Browse files
garakmmoll
authored andcommitted
prevent errors on php 8.1
1 parent 80ce9b3 commit 016d40c

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"ext-dom": "*",
2323
"monolog/monolog": "~1.7||~2.0",
2424
"phpunit/php-file-iterator": "~2.0||^3.0",
25-
"symfony/console": "~3.4||~4.0||~5.0"
25+
"symfony/console": "~3.4||~4.0||~5.0||~6.0"
2626
},
2727
"require-dev": {
2828
"humbug/box": "^3.13",
@@ -63,5 +63,10 @@
6363
"clean": "rm -rf build/logs/* build/code-browser",
6464
"browser": "bin/phpcb -l build/logs -o build/code-browser -s src",
6565
"phar": "php vendor/bin/box compile"
66+
},
67+
"config": {
68+
"allow-plugins": {
69+
"dealerdirect/phpcodesniffer-composer-installer": true
70+
}
6671
}
6772
}

src/PHPCodeBrowser/IssueXML.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,6 @@ class IssueXML extends DOMDocument
9393
*/
9494
protected $xpath;
9595

96-
/**
97-
* Do not preserve white spaces.
98-
*
99-
* @see DOMDocument
100-
*
101-
* @var bool
102-
*/
103-
public $preserveWhiteSpace = false;
104-
105-
/**
106-
* Provide nice output.
107-
*
108-
* @var bool
109-
*/
110-
public $formatOutput = true;
111-
11296
/**
11397
* Default constructor
11498
*
@@ -121,6 +105,8 @@ public function __construct(string $version = '1.0', string $encoding = 'UTF-8')
121105
$this->appendChild(
122106
$this->createElement('codebrowser')
123107
);
108+
$this->preserveWhiteSpace = false;
109+
$this->formatOutput = true;
124110
}
125111

126112
/**

0 commit comments

Comments
 (0)