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 22
33All notable changes are documented in this file using the [ Keep a CHANGELOG] ( http://keepachangelog.com/ ) principles.
44
5+ ## [ 9.2.8] - 2021-MM-DD
6+
7+ ### Fixed
8+
9+ * [ #866 ] ( https://github.com/sebastianbergmann/php-code-coverage/issues/866 ) : ` CodeUnitFindingVisitor ` does not handle ` enum ` type introduced in PHP 8.1
10+
511## [ 9.2.7] - 2021-09-17
612
713### Fixed
@@ -329,6 +335,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
329335
330336* This component is no longer supported on PHP 7.1
331337
338+ [ 9.2.8 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.7...9.2
332339[ 9.2.7 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.6...9.2.7
333340[ 9.2.6 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.5...9.2.6
334341[ 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_ ;
@@ -231,7 +232,7 @@ private function processMethod(ClassMethod $node): void
231232 return ;
232233 }
233234
234- assert ($ parentNode instanceof Class_ || $ parentNode instanceof Trait_);
235+ assert ($ parentNode instanceof Class_ || $ parentNode instanceof Trait_ || $ parentNode instanceof Enum_ );
235236 assert (isset ($ parentNode ->name ));
236237 assert (isset ($ parentNode ->namespacedName ));
237238 assert ($ parentNode ->namespacedName instanceof Name);
You can’t perform that action at this time.
0 commit comments