File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
1414* This component is no longer supported on PHP 7.3 and PHP 7.4
1515* This component no longer supports Xdebug 2
1616
17+ ## [ 9.2.8] - 2021-MM-DD
18+
19+ ### Fixed
20+
21+ * [ #866 ] ( https://github.com/sebastianbergmann/php-code-coverage/issues/866 ) : ` CodeUnitFindingVisitor ` does not handle ` enum ` type introduced in PHP 8.1
22+
1723## [ 9.2.7] - 2021-09-17
1824
1925### Fixed
@@ -342,6 +348,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
342348* This component is no longer supported on PHP 7.1
343349
344350[ 10.0.0 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2...master
351+ [ 9.2.8 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.7...9.2
345352[ 9.2.7 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.6...9.2.7
346353[ 9.2.6 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.5...9.2.6
347354[ 9.2.5 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.4...9.2.5
Original file line number Diff line number Diff line change 1818use PhpParser \Node \NullableType ;
1919use PhpParser \Node \Stmt \Class_ ;
2020use PhpParser \Node \Stmt \ClassMethod ;
21+ use PhpParser \Node \Stmt \Enum_ ;
2122use PhpParser \Node \Stmt \Function_ ;
2223use PhpParser \Node \Stmt \Interface_ ;
2324use PhpParser \Node \Stmt \Trait_ ;
@@ -222,7 +223,7 @@ private function processMethod(ClassMethod $node): void
222223 return ;
223224 }
224225
225- assert ($ parentNode instanceof Class_ || $ parentNode instanceof Trait_);
226+ assert ($ parentNode instanceof Class_ || $ parentNode instanceof Trait_ || $ parentNode instanceof Enum_ );
226227 assert (isset ($ parentNode ->name ));
227228 assert (isset ($ parentNode ->namespacedName ));
228229 assert ($ parentNode ->namespacedName instanceof Name);
You can’t perform that action at this time.
0 commit comments