Skip to content

Commit b1755c0

Browse files
author
rmp-up
committed
composer: Use laminas zend to be PHP8 compatible
* Also changed some function usages for PHP8 compat
1 parent fb517c4 commit b1755c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"ext-simplexml": "*",
1313
"league/commonmark": "^0.18.1",
1414
"michelf/php-markdown": ">=1.0 <2.0.0",
15-
"zendframework/zend-code": ">=3.0 <4.0.0",
15+
"laminas/laminas-code": ">=3.0 <4.0.0",
1616
"phpdocumentor/reflection-docblock": "4.3.* || 5.*",
1717
"mikey179/vfsstream": "^1.6",
18-
"gherkins/regexpbuilderphp": "^0.8.0"
18+
"gherkins/regexpbuilderphp": "0.7.* || 0.8.*"
1919
}
20-
}
20+
}

lib/Comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function markdown(): string
105105

106106
$description = $this->docBlock()->getDescription();
107107
// Unescape possibly escaped comment blocks
108-
$description = preg_replace('@(\s*)\*\\\/(\s*)$@m', '\1*/', $description);
108+
$description = preg_replace('@(\s*)\*\\\/(\s*)$@m', '\1*/', (string) $description);
109109

110110
$markdown .= $description;
111111

@@ -132,4 +132,4 @@ public function xpath(string $xpath, int $index = null)
132132

133133
return $elements[$index];
134134
}
135-
}
135+
}

0 commit comments

Comments
 (0)