All notable changes are documented in this file using the Keep a CHANGELOG principles.
- #1033:
@codeCoverageIgnore
annotation does not work on enum
- #1032: Pad lines in code coverage report only when colors are shown
- Do not use implicitly nullable parameters
- This component is now compatible with
nikic/php-parser
5.0
- #1023: Branch Coverage and Path Coverage are not correctly reported for traits
- #1020: Single line method is ignored
- #1018: Interface methods are not ignored when their signature is split over multiple lines
- #1014: Incorrect statement count in coverage report for constructor property promotion
- #1012: Cobertura report pulls functions from report scope, not the individual element
- #1011: Avoid serialization of cache data in PHP report
- Exceptions of type
SebastianBergmann\Template\Exception
are now properly handled
- The result of
CodeCoverage::getReport()
is now cached
- Static analysis cache keys do not include configuration settings that affect source code parsing
- The Clover, Cobertura, Crap4j, and PHP report writers no longer create a
php:
directory when they should write to php://stdout
, for instance
- #998: Group Use Declarations are not handled properly
- #994: Argument
$linesToBeIgnored
of CodeCoverage::stop()
has no effect for files that are not executed at all
- #982: Add option to ignore lines from code coverage
- The
SebastianBergmann\CodeCoverage\Filter::includeDirectory()
, SebastianBergmann\CodeCoverage\Filter::excludeDirectory()
, and SebastianBergmann\CodeCoverage\Filter::excludeFile()
methods are now deprecated