Skip to content

Commit ea615cc

Browse files
committed
code coverage ignore
1 parent 26f5441 commit ea615cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PhpDocTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PhpDocTag extends PhpTemplate
1313
* @param $name
1414
* @param $value
1515
*/
16-
public function __construct($name, $value)
16+
public function __construct($name, $value = '')
1717
{
1818
$this->name = $name;
1919
$this->value = $value;

src/PhpFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function toString()
4444
{
4545
$tail = '';
4646
if ($this->skipCodeCoverage) {
47-
$tail = (new PhpDoc)->add(PhpDoc::TAG_CODE_COVERAGE_IGNORE_END);
47+
$tail = (new PhpDocTag(PhpDoc::TAG_CODE_COVERAGE_IGNORE_END))->render() . "\n";
4848
}
4949

5050
return <<<PHP

0 commit comments

Comments
 (0)