Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid serialization of cache data in PHP report #1010

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
6f1cbc4
Add tests
sebastianbergmann Feb 22, 2022
8af3dd9
Hopefully make this test work on Windows
sebastianbergmann Feb 22, 2022
65cb0ec
Use attributes instead of annotations
sebastianbergmann Feb 23, 2022
ed9b5e7
Declare property types
sebastianbergmann Feb 23, 2022
f87427f
Declare parameter types
sebastianbergmann Feb 23, 2022
4bbe4b2
Merge branch '9.2'
sebastianbergmann Feb 23, 2022
864bd21
Merge branch '9.2'
sebastianbergmann Feb 23, 2022
971bee3
Merge branch '9.2'
sebastianbergmann Feb 23, 2022
50e995b
Merge branch '9.2'
sebastianbergmann Feb 23, 2022
02709a9
Declare property type
sebastianbergmann Feb 23, 2022
9b06768
Merge branch '9.2'
sebastianbergmann Feb 23, 2022
67addff
Fix issues identified by Psalm
sebastianbergmann Feb 24, 2022
1158c4c
Revert "Fix issues identified by Psalm"
sebastianbergmann Feb 24, 2022
e4d669e
Merge branch '9.2'
sebastianbergmann Feb 28, 2022
0276683
Fix bad merge
sebastianbergmann Feb 28, 2022
b949b18
Merge branch '9.2'
sebastianbergmann Mar 3, 2022
60afd1b
Merge branch '9.2'
sebastianbergmann Mar 3, 2022
35df38a
Merge branch '9.2'
sebastianbergmann Mar 6, 2022
0bb71d8
Merge branch '9.2'
sebastianbergmann Mar 6, 2022
13290ca
Merge branch '9.2'
sebastianbergmann Mar 7, 2022
032a8e3
Merge branch '9.2'
sebastianbergmann Mar 7, 2022
17c92e0
Merge branch '9.2'
sebastianbergmann Mar 8, 2022
77d4217
Also use Thresholds value object to configure Text report
sebastianbergmann Mar 8, 2022
a134f8f
Merge branch '9.2'
sebastianbergmann Mar 21, 2022
c94a6b2
Merge branch '9.2'
sebastianbergmann Mar 30, 2022
10ca93c
Drop support for PHP 8.0
sebastianbergmann Mar 30, 2022
af1a617
Merge branch '9.2'
sebastianbergmann Mar 31, 2022
ffe0da0
Merge branch '9.2'
sebastianbergmann Apr 2, 2022
5bd0c89
Merge branch '9.2'
sebastianbergmann Apr 11, 2022
7ed60d0
Rename development branch
sebastianbergmann Apr 11, 2022
3614a0f
The development branch has been renamed
sebastianbergmann Apr 11, 2022
97ab95c
Merge branch '9.2'
sebastianbergmann Apr 13, 2022
20e8bea
Merge branch '9.2'
sebastianbergmann May 3, 2022
526ec51
Merge branch '9.2'
sebastianbergmann Jun 5, 2022
a1e2537
Merge branch '9.2'
sebastianbergmann Jun 5, 2022
3093352
Do not use --verbose CLI option
sebastianbergmann Jun 5, 2022
3d027f8
Merge branch '9.2'
sebastianbergmann Jun 5, 2022
fe72476
Merge branch '9.2'
sebastianbergmann Jun 9, 2022
85af2b4
Merge branch '9.2'
sebastianbergmann Jun 28, 2022
9c5e42d
Merge branch '9.2'
sebastianbergmann Jul 2, 2022
82f71bf
Merge branch '9.2'
sebastianbergmann Jul 11, 2022
7e164fe
Merge branch '9.2'
sebastianbergmann Jul 11, 2022
b11c239
Merge branch '9.2'
sebastianbergmann Jul 11, 2022
bdff404
Merge branch '9.2'
sebastianbergmann Jul 12, 2022
a3ec0d5
Merge branch '9.2'
sebastianbergmann Jul 13, 2022
cfb18f8
Merge branch '9.2'
sebastianbergmann Jul 16, 2022
784afb3
Merge branch '9.2'
sebastianbergmann Jul 23, 2022
1709f3b
Merge branch '9.2'
sebastianbergmann Jul 29, 2022
6161d54
Merge branch '9.2'
sebastianbergmann Jul 29, 2022
2a13f91
Merge branch '9.2'
sebastianbergmann Aug 3, 2022
f6e4788
Merge branch '9.2'
sebastianbergmann Aug 17, 2022
611ec0a
Merge branch '9.2'
sebastianbergmann Aug 20, 2022
9d62656
Sync
sebastianbergmann Aug 24, 2022
f87b8bf
Delete code that is no longer needed
sebastianbergmann Aug 29, 2022
b807765
Merge branch '9.2'
sebastianbergmann Aug 30, 2022
98cd09c
Merge branch '9.2'
sebastianbergmann Aug 30, 2022
a99602d
Merge branch '9.2'
sebastianbergmann Aug 30, 2022
08e4035
Merge branch '9.2'
sebastianbergmann Aug 30, 2022
5fe7cbb
Merge branch '9.2'
sebastianbergmann Sep 2, 2022
b3ad370
Do not use rely on PHPUnit internals
sebastianbergmann Sep 2, 2022
38de5e7
Merge branch '9.2'
sebastianbergmann Sep 4, 2022
f7bbc60
Cleanup
sebastianbergmann Sep 4, 2022
5f9610a
Rename method
sebastianbergmann Sep 5, 2022
362eab6
Merge branch '9.2'
sebastianbergmann Sep 6, 2022
a55cd26
Closes #933
sebastianbergmann Sep 6, 2022
c8dd7c9
Refactor
sebastianbergmann Sep 6, 2022
e1aa8cb
Fix issues identified by Psalm
sebastianbergmann Sep 6, 2022
51abc96
Merge branch '9.2'
sebastianbergmann Sep 6, 2022
93784f8
Remove metadata that is no longer needed
sebastianbergmann Sep 6, 2022
37e2852
Merge branch '9.2'
sebastianbergmann Sep 10, 2022
1f84d16
Reformat so that tools recognize the license
sebastianbergmann Sep 13, 2022
0071874
Merge branch '9.2'
sebastianbergmann Sep 18, 2022
4bc2345
Merge branch '9.2'
sebastianbergmann Sep 18, 2022
be4d921
Merge branch '9.2'
sebastianbergmann Sep 19, 2022
16c445f
Merge branch '9.2'
sebastianbergmann Sep 19, 2022
b555044
Merge branch '9.2'
sebastianbergmann Oct 9, 2022
822460a
Merge branch '9.2'
sebastianbergmann Oct 11, 2022
38cb780
Bump
sebastianbergmann Oct 11, 2022
c304be7
Remove support for PHPDBG
sebastianbergmann Oct 11, 2022
23dc2f5
Merge branch '9.2'
sebastianbergmann Oct 13, 2022
dd30c61
Merge branch '9.2'
sebastianbergmann Oct 17, 2022
ecdb424
Merge branch '9.2'
sebastianbergmann Oct 21, 2022
70504b0
Merge branch '9.2'
sebastianbergmann Oct 27, 2022
c44f8d6
Merge branch '9.2'
sebastianbergmann Oct 27, 2022
191b8c9
Delete old test expectations
sebastianbergmann Oct 27, 2022
4264744
Merge branch '9.2'
sebastianbergmann Oct 27, 2022
56493cc
Fix: Remove unused key-value pair
localheinz Oct 27, 2022
2845d66
Merge branch '9.2'
sebastianbergmann Oct 29, 2022
95ea50a
Merge branch '9.2'
sebastianbergmann Nov 1, 2022
2fde509
Merge branch '9.2'
sebastianbergmann Nov 3, 2022
73634aa
Merge branch '9.2'
sebastianbergmann Nov 7, 2022
ed344b8
Merge branch '9.2'
sebastianbergmann Nov 7, 2022
069b410
Limit information about unintentionally covered units of code to clas…
sebastianbergmann Nov 11, 2022
58a06a9
Merge branch '9.2'
sebastianbergmann Nov 16, 2022
93e51f3
Merge branch '9.2'
sebastianbergmann Nov 16, 2022
2ba75ba
Merge branch '9.2'
sebastianbergmann Nov 18, 2022
ece0140
Merge branch '9.2'
sebastianbergmann Nov 20, 2022
d9d16ac
Merge branch '9.2'
sebastianbergmann Nov 30, 2022
a687b9b
Merge branch '9.2'
sebastianbergmann Dec 3, 2022
1810cdd
Merge branch '9.2'
sebastianbergmann Dec 13, 2022
72839d0
Merge branch '9.2'
sebastianbergmann Dec 14, 2022
e4dd4c1
Declare property types
sebastianbergmann Dec 14, 2022
73fccca
Merge branch '9.2'
sebastianbergmann Dec 14, 2022
e0e40b7
Declare return type
sebastianbergmann Dec 14, 2022
7d99e24
Make data provider static
sebastianbergmann Dec 14, 2022
fca0876
Fix CS/WS issue
sebastianbergmann Dec 14, 2022
121ca21
Fix CS/WS issue
sebastianbergmann Dec 14, 2022
b575d92
Merge branch '9.2'
sebastianbergmann Dec 14, 2022
ad33ebb
Merge branch '9.2'
sebastianbergmann Dec 19, 2022
8206938
Merge branch '9.2'
sebastianbergmann Dec 19, 2022
096bd19
Merge branch '9.2'
sebastianbergmann Dec 20, 2022
e7fbeff
Merge branch '9.2'
sebastianbergmann Dec 20, 2022
1057f3e
Merge branch '9.2'
sebastianbergmann Dec 22, 2022
516a85c
Merge branch '9.2'
sebastianbergmann Dec 22, 2022
6659d74
Merge branch '9.2'
sebastianbergmann Dec 24, 2022
65ad8d4
Merge branch '9.2'
sebastianbergmann Dec 24, 2022
a1998dc
Merge branch '9.2'
sebastianbergmann Dec 28, 2022
94b2fc1
Merge branch '9.2'
sebastianbergmann Jan 1, 2023
eba623e
Merge branch '9.2'
sebastianbergmann Jan 2, 2023
169d280
Merge branch '9.2'
sebastianbergmann Jan 2, 2023
3270123
Update ChangeLog
sebastianbergmann Jan 15, 2023
b463717
Update PHP-CS-Fixer configuration
sebastianbergmann Jan 15, 2023
069c83f
Fix CS/WS issues
sebastianbergmann Jan 15, 2023
48539b2
Merge branch '9.2'
sebastianbergmann Jan 15, 2023
e21faf2
Merge branch '9.2'
sebastianbergmann Jan 23, 2023
e2378fb
Merge branch '9.2'
sebastianbergmann Jan 24, 2023
eab57f5
Fix branch name
sebastianbergmann Jan 25, 2023
681d8af
Merge branch '9.2'
sebastianbergmann Jan 26, 2023
fcc4d40
Declare readonly properties
sebastianbergmann Jan 26, 2023
efdff3c
Sync with API change in sebastian/version
sebastianbergmann Jan 27, 2023
60bdc4c
Merge branch '9.2'
sebastianbergmann Jan 30, 2023
6055ca6
Document array shape
sebastianbergmann Jan 31, 2023
61d610c
Only pass ProcessedCodeCoverageData object and tests array to Builder…
sebastianbergmann Jan 31, 2023
274d972
Decouple report generators from CodeCoverage object
sebastianbergmann Jan 31, 2023
d0a0730
Refactor
sebastianbergmann Jan 31, 2023
47ba26f
Revert "Refactor"
sebastianbergmann Jan 31, 2023
25b4dd5
Revert "Decouple report generators from CodeCoverage object"
sebastianbergmann Jan 31, 2023
f6eb417
Revert "Only pass ProcessedCodeCoverageData object and tests array to…
sebastianbergmann Jan 31, 2023
261a022
Add Security Policy
sebastianbergmann Feb 2, 2023
bf4fbc9
Prepare release
sebastianbergmann Feb 3, 2023
8d14fc3
Update security policy
sebastianbergmann Feb 8, 2023
9658104
Merge branch '9.2'
sebastianbergmann Feb 9, 2023
37fadb0
Remove superfluous type annotation
sebastianbergmann Feb 10, 2023
3ee0f39
Merge branch '9.2'
sebastianbergmann Feb 11, 2023
b995652
Merge branch '9.2'
sebastianbergmann Feb 18, 2023
f69ceb0
Merge branch '9.2'
sebastianbergmann Feb 20, 2023
4baff6b
Merge branch '9.2'
sebastianbergmann Feb 21, 2023
68525fc
Merge branch '9.2'
sebastianbergmann Feb 23, 2023
2dd7600
Remove superfluous skip conditions
sebastianbergmann Feb 24, 2023
fc83e50
Use str_contains() instead of strpos()
sebastianbergmann Feb 24, 2023
91a4b29
Use RequiresPhp attribute
sebastianbergmann Feb 24, 2023
87a5ef0
Use CoversClass attribute
sebastianbergmann Feb 24, 2023
a624e03
Delete tests specific to PHP 7.4 and PHP 8.0
sebastianbergmann Feb 24, 2023
c1157d2
Tweak skip conditions
sebastianbergmann Feb 24, 2023
903cc8c
Bump
sebastianbergmann Feb 24, 2023
b46175f
Closes #981
sebastianbergmann Feb 24, 2023
8e71f29
Merge branch '9.2'
sebastianbergmann Feb 24, 2023
85099fe
Merge branch '9.2'
sebastianbergmann Feb 24, 2023
493b3c9
Merge branch '9.2'
sebastianbergmann Feb 25, 2023
c3beeb4
Revert "Make this compatible with PHP 7"
sebastianbergmann Feb 25, 2023
b9c21a9
Prepare release
sebastianbergmann Feb 25, 2023
315a4c7
Delete old ChangeLog entries
sebastianbergmann Feb 26, 2023
0dac916
PHPDBG is no longer supported
sebastianbergmann Feb 26, 2023
84357b5
Be more specific
sebastianbergmann Feb 26, 2023
2a5347e
Bump
sebastianbergmann Feb 26, 2023
a853d46
Initial work on #982
sebastianbergmann Feb 26, 2023
d888fc3
Update ChangeLog
sebastianbergmann Feb 26, 2023
842834f
Merge branch '9.2' into 10.0
sebastianbergmann Feb 27, 2023
475547d
Merge branch '10.0'
sebastianbergmann Feb 27, 2023
117fa19
Merge branch '9.2'
sebastianbergmann Mar 4, 2023
3d3757a
Merge branch '9.2' into 10.0
sebastianbergmann Mar 6, 2023
35c14ec
Update ChangeLog
sebastianbergmann Mar 6, 2023
d0ddca0
Merge branch '10.0'
sebastianbergmann Mar 6, 2023
c3e2ff4
The colors for these new classes need to be configurable, too
sebastianbergmann Mar 6, 2023
ee23cba
Merge branch '10.0'
sebastianbergmann Mar 6, 2023
4db4a86
Merge branch '9.2' into 10.0
sebastianbergmann Mar 6, 2023
20800e8
Prepare release
sebastianbergmann Mar 6, 2023
5853f83
Merge branch '10.0'
sebastianbergmann Mar 6, 2023
4e4dd98
This library requires PHP >= 8.1
sebastianbergmann Mar 9, 2023
544e9aa
Use constant now that we do not have to deal with different versions
sebastianbergmann Mar 9, 2023
3a62e02
Merge branch '10.0'
sebastianbergmann Mar 9, 2023
f55827a
Merge branch '9.2'
sebastianbergmann Mar 10, 2023
51e95eb
Merge branch '9.2'
sebastianbergmann Mar 13, 2023
8238855
Merge branch '9.2'
sebastianbergmann Mar 13, 2023
2ff25d1
Merge branch '9.2'
sebastianbergmann Mar 14, 2023
489650a
Merge branch '9.2'
sebastianbergmann Mar 14, 2023
ec30451
Return early
sebastianbergmann Mar 17, 2023
c8b3a10
Enhancement: Enable required PHP extensions only
localheinz Mar 17, 2023
f13d24c
Fix: Use psalm-var instead of psalm-return
localheinz Mar 19, 2023
ef1c71e
Merge branch '9.2' into 10.0
sebastianbergmann Mar 19, 2023
466ce40
Merge branch '10.0'
sebastianbergmann Mar 19, 2023
3b78366
Enhancement: Document array shapes
localheinz Mar 19, 2023
54be6f2
Fix: Run 'tools/psalm --config=.psalm/config.xml --set-baseline=.psal…
localheinz Mar 20, 2023
a6dc31d
Merge branch '10.0'
sebastianbergmann Mar 20, 2023
e31de05
Document array shape
sebastianbergmann Mar 20, 2023
2dc34be
Remove superfluous null checks
sebastianbergmann Mar 20, 2023
913f51a
Merge branch '10.0'
sebastianbergmann Mar 20, 2023
6fd4257
Merge branch '9.2' into 10.0
sebastianbergmann Mar 22, 2023
48c7bd8
Merge branch '10.0'
sebastianbergmann Mar 22, 2023
22daefe
Tweak
sebastianbergmann Mar 25, 2023
a99717b
Push release by one week
sebastianbergmann Mar 30, 2023
dfe1368
Merge branch '9.2' into 10.0
sebastianbergmann Mar 30, 2023
221a4ca
Update Psalm baseline
sebastianbergmann Mar 30, 2023
153f70e
Merge branch '10.0'
sebastianbergmann Mar 30, 2023
2f8a3e5
Use phpunit.xsd from vendor directory
sebastianbergmann Apr 4, 2023
620e201
Update PHPUnit configuration
sebastianbergmann Apr 4, 2023
c9caa88
Deprecate methods that are no longer used by PHPUnit
sebastianbergmann Apr 4, 2023
a2c8315
Merge branch '9.2' into 10.0
sebastianbergmann Apr 4, 2023
ef5bf58
Merge branch '10.0'
sebastianbergmann Apr 4, 2023
fc4f5ee
Prepare release
sebastianbergmann Apr 13, 2023
8d6cb4c
Migrate to PHPUnit 10.1
sebastianbergmann Apr 14, 2023
7af249f
Closes #994
sebastianbergmann Apr 17, 2023
884a0da
Prepare release
sebastianbergmann Apr 17, 2023
2f8efc6
Merge branch '9.2'
sebastianbergmann May 5, 2023
fb988b8
Merge branch '9.2'
sebastianbergmann May 7, 2023
5fb49e5
Update PHPUnit configuration
sebastianbergmann May 7, 2023
b10b1fb
Update Psalm baseline
sebastianbergmann May 7, 2023
db1497e
Prepare release
sebastianbergmann May 22, 2023
32c31f6
Merge branch '9.2'
sebastianbergmann May 25, 2023
aadd50f
Closes #1000
sebastianbergmann Jun 13, 2023
88d4aa8
Merge branch '9.2'
sebastianbergmann Jun 19, 2023
e710c4b
Merge branch '9.2'
sebastianbergmann Jun 24, 2023
932092f
Merge branch '9.2'
sebastianbergmann Jun 25, 2023
d414539
Merge branch '9.2'
sebastianbergmann Jun 25, 2023
0f9b189
Merge branch '9.2'
sebastianbergmann Jun 25, 2023
0c4186c
Merge branch '9.2'
sebastianbergmann Jun 26, 2023
7799691
Merge branch '9.2'
sebastianbergmann Jun 28, 2023
71acd36
Merge branch '9.2'
sebastianbergmann Jul 6, 2023
c6e2e46
Merge branch '9.2'
sebastianbergmann Jul 15, 2023
a7e7f0b
Merge branch '9.2'
sebastianbergmann Jul 16, 2023
723fc31
Merge branch '9.2'
sebastianbergmann Jul 17, 2023
4f88707
Merge branch '9.2'
sebastianbergmann Jul 26, 2023
27176ee
Merge branch '9.2'
sebastianbergmann Jul 26, 2023
bd52505
Merge branch '9.2'
sebastianbergmann Jul 26, 2023
be1fe46
Prepare release
sebastianbergmann Jul 26, 2023
a657757
Merge branch '9.2'
sebastianbergmann Aug 2, 2023
84ed66b
Merge branch '9.2'
sebastianbergmann Aug 14, 2023
b0b9b2e
Merge branch '9.2'
sebastianbergmann Aug 21, 2023
4d1fc9f
Merge branch '9.2'
sebastianbergmann Aug 30, 2023
00fbf1d
Merge branch '9.2'
sebastianbergmann Aug 30, 2023
f3ea9c6
Wrap exceptions from php-text-template
sebastianbergmann Aug 31, 2023
b172a7a
Be paranoid
sebastianbergmann Aug 31, 2023
679eece
Update Psalm baseline
sebastianbergmann Aug 31, 2023
05cd228
Reorganize
sebastianbergmann Aug 31, 2023
cd59bb3
Prepare release
sebastianbergmann Aug 31, 2023
7069bda
Merge branch '9.2'
sebastianbergmann Sep 1, 2023
596be9d
Merge branch '9.2'
sebastianbergmann Sep 1, 2023
d745980
Merge branch '9.2'
sebastianbergmann Sep 4, 2023
61a9ced
Merge branch '9.2'
sebastianbergmann Sep 10, 2023
74f8ad5
Avoid serialization of cache data in PHP report
Slamdunk Sep 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/.github/CONTRIBUTING.md) for details on how to contribute to this project.
Please refer to [https://github.com/sebastianbergmann/phpunit/blob/main/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/main/.github/CONTRIBUTING.md) for details on how to contribute to this project.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
| --------------------------| ---------------
| php-code-coverage version | x.y.z
| PHP version | x.y.z
| Driver | PCOV / Xdebug / PHPDBG
| Driver | PCOV / Xdebug
| PCOV version (if used) | x.y.z
| Xdebug version (if used) | x.y.z
| Installation Method | Composer / PHPUnit PHAR
Expand Down
25 changes: 4 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
name: CI

env:
COMPOSER_ROOT_VERSION: "9.2-dev"
COMPOSER_ROOT_VERSION: "10.1-dev"

jobs:
coding-guidelines:
Expand All @@ -23,7 +23,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: :apcu, :imagick
extensions: none, iconv, json, phar, tokenizer
coverage: none
tools: none

Expand All @@ -43,7 +43,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: :apcu, :imagick
extensions: none, dom, iconv, mbstring, opcache, simplexml, tokenizer, xml, xmlwriter
coverage: none
tools: none

Expand All @@ -59,7 +59,7 @@ jobs:
runs-on: ${{ matrix.os }}

env:
PHP_EXTENSIONS: dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter, :apcu, :imagick
PHP_EXTENSIONS: none, dom, json, libxml, mbstring, openssl, pdo_sqlite, soap, tokenizer, xml, xmlwriter
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On

strategy:
Expand All @@ -70,32 +70,15 @@ jobs:
- windows-latest

php-version:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"

coverage-driver:
- "pcov"
- "xdebug"
- "xdebug3"

exclude:
- php-version: "8.0"
coverage-driver: "xdebug"

- php-version: "8.1"
coverage-driver: "xdebug"

- php-version: "8.2"
coverage-driver: "xdebug"

- php-version: "8.3"
coverage-driver: "xdebug"

steps:
- name: Configure Git to avoid issues with line endings
if: matrix.os == 'windows-latest'
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
'function_declaration' => true,
'function_to_constant' => true,
'function_typehint_space' => true,
'get_class_to_class_keyword' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
Expand Down
168 changes: 59 additions & 109 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.14.1@b9d355e0829c397b9b3b47d0c0ed042a8a70284d">
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<file src="src/CodeCoverage.php">
<ArgumentTypeCoercion>
<code>$unit[0]</code>
<code>$tmp[0]</code>
</ArgumentTypeCoercion>
<DocblockTypeContradiction>
<code><![CDATA[!is_array($linesToBeCovered) && $linesToBeCovered !== false]]></code>
</DocblockTypeContradiction>
<InternalClass>
<code>Test::LARGE</code>
<code>Test::MEDIUM</code>
<code>Test::SMALL</code>
</InternalClass>
<InternalMethod>
<code>getName</code>
<code>getName</code>
<code>getSize</code>
<code>isLarge</code>
<code>isMedium</code>
</InternalMethod>
<RedundantCondition>
<code><![CDATA[$class->isSubclassOf($parentClass)]]></code>
<code>is_array($linesToBeCovered)</code>
</RedundantCondition>
<UnresolvableInclude>
<code>include_once $uncoveredFile</code>
</UnresolvableInclude>
</file>
<file src="src/Data/ProcessedCodeCoverageData.php">
<InvalidArgument>
<code>$functionData</code>
<code>$functionData</code>
</InvalidArgument>
<PossiblyNullArgument>
<code><![CDATA[$newData->lineCoverage[$file][$line]]]></code>
</PossiblyNullArgument>
<PropertyTypeCoercion>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->functionCoverage]]></code>
<code><![CDATA[$this->lineCoverage]]></code>
<code><![CDATA[$this->lineCoverage]]></code>
<code><![CDATA[$this->lineCoverage]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Driver/PcovDriver.php">
<UndefinedConstant>
Expand All @@ -39,14 +45,7 @@
<code>waiting()</code>
</UndefinedFunction>
</file>
<file src="src/Driver/Xdebug2Driver.php">
<UndefinedConstant>
<code>XDEBUG_CC_BRANCH_CHECK</code>
<code>XDEBUG_CC_DEAD_CODE</code>
<code>XDEBUG_CC_UNUSED</code>
</UndefinedConstant>
</file>
<file src="src/Driver/Xdebug3Driver.php">
<file src="src/Driver/XdebugDriver.php">
<UndefinedConstant>
<code>XDEBUG_CC_BRANCH_CHECK</code>
<code>XDEBUG_CC_DEAD_CODE</code>
Expand All @@ -56,46 +55,26 @@
</UndefinedConstant>
</file>
<file src="src/Filter.php">
<ArgumentTypeCoercion>
<code>$directory</code>
<code>$directory</code>
</ArgumentTypeCoercion>
<DeprecatedMethod>
<code>excludeFile</code>
</DeprecatedMethod>
<InvalidDocblockParamName>
<code>$files</code>
</InvalidDocblockParamName>
</file>
<file src="src/Node/AbstractNode.php">
<DocblockTypeContradiction>
<code><![CDATA[$this->id === null]]></code>
<code><![CDATA[$this->parent === null]]></code>
<code><![CDATA[$this->parent === null]]></code>
<code><![CDATA[$this->pathAsArray === null]]></code>
<code><![CDATA[$this->pathAsString === null]]></code>
</DocblockTypeContradiction>
<PossiblyNullPropertyAssignmentValue>
<code>$parent</code>
</PossiblyNullPropertyAssignmentValue>
<PropertyNotSetInConstructor>
<code>$id</code>
<code>$pathAsArray</code>
<code>$pathAsString</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Node/Builder.php">
<UnsupportedReferenceUsage>
<code><![CDATA[$pointer = &$pointer[$path[$i] . $type]]]></code>
</UnsupportedReferenceUsage>
</file>
<file src="src/Node/Directory.php">
<DocblockTypeContradiction>
<code><![CDATA[$this->classes === null]]></code>
<code><![CDATA[$this->functions === null]]></code>
<code><![CDATA[$this->traits === null]]></code>
</DocblockTypeContradiction>
<MissingTemplateParam>
<code>IteratorAggregate</code>
</MissingTemplateParam>
<PropertyNotSetInConstructor>
<code>$classes</code>
<code>$functions</code>
<code>$traits</code>
</PropertyNotSetInConstructor>
<PropertyTypeCoercion>
<code><![CDATA[$this->directories]]></code>
<code><![CDATA[$this->files]]></code>
Expand All @@ -105,27 +84,6 @@
<code><![CDATA[$this->files[] = &$this->children[count($this->children) - 1]]]></code>
</UnsupportedReferenceUsage>
</file>
<file src="src/Node/File.php">
<DocblockTypeContradiction>
<code><![CDATA[$this->numClasses === null]]></code>
<code><![CDATA[$this->numMethods === null]]></code>
<code><![CDATA[$this->numTestedFunctions === null]]></code>
<code><![CDATA[$this->numTestedMethods === null]]></code>
<code><![CDATA[$this->numTraits === null]]></code>
</DocblockTypeContradiction>
<InvalidPropertyAssignmentValue>
<code><![CDATA[$this->codeUnitsByLine]]></code>
<code><![CDATA[$this->codeUnitsByLine]]></code>
<code><![CDATA[$this->codeUnitsByLine]]></code>
</InvalidPropertyAssignmentValue>
<PropertyNotSetInConstructor>
<code>$numClasses</code>
<code>$numMethods</code>
<code>$numTestedFunctions</code>
<code>$numTestedMethods</code>
<code>$numTraits</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Node/Iterator.php">
<ArgumentTypeCoercion>
<code><![CDATA[$this->nodes[$this->position]]]></code>
Expand All @@ -136,21 +94,25 @@
<PropertyNotSetInConstructor>
<code>$position</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/ProcessedCodeCoverageData.php">
<PossiblyNullArgument>
<code><![CDATA[$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']]]></code>
</PossiblyNullArgument>
<PossiblyNullArrayAccess>
<code><![CDATA[$this->functionCoverage[$file][$functionName]['branches']]]></code>
<code><![CDATA[$this->functionCoverage[$file][$functionName]['branches'][$branchId]]]></code>
<code><![CDATA[$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']]]></code>
</PossiblyNullArrayAccess>
<PossiblyNullArrayAssignment>
<code><![CDATA[$this->functionCoverage[$file][$functionName]['branches']]]></code>
</PossiblyNullArrayAssignment>
<PropertyTypeCoercion>
<code><![CDATA[$node->children()]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Report/Html/Renderer.php">
<InvalidArgument>
<code><![CDATA[[
'id' => $node->id(),
'full_path' => $node->pathAsString(),
'path_to_root' => $this->pathToRoot($node),
'breadcrumbs' => $this->breadcrumbs($node),
'date' => $this->date,
'version' => $this->version,
'runtime' => $this->runtimeString(),
'generator' => $this->generator,
'low_upper_bound' => $this->thresholds->lowUpperBound(),
'high_lower_bound' => $this->thresholds->highLowerBound(),
]]]></code>
</InvalidArgument>
<PossiblyUndefinedArrayOffset>
<code><![CDATA[$data['branchesExecutedPercentAsString']]]></code>
<code><![CDATA[$data['linesExecutedPercentAsString']]]></code>
Expand All @@ -169,15 +131,14 @@
</PossiblyInvalidArgument>
</file>
<file src="src/Report/Html/Renderer/File.php">
<InternalClass>
<code>BaseTestRunner::STATUS_ERROR</code>
<code>BaseTestRunner::STATUS_FAILURE</code>
<code>BaseTestRunner::STATUS_INCOMPLETE</code>
<code>BaseTestRunner::STATUS_PASSED</code>
<code>BaseTestRunner::STATUS_RISKY</code>
<code>BaseTestRunner::STATUS_SKIPPED</code>
<code>BaseTestRunner::STATUS_WARNING</code>
</InternalClass>
<InvalidArgument>
<code><![CDATA[[
'lineNumber' => $lineNumber,
'lineContent' => $lineContent,
'class' => $class,
'popover' => $popover,
]]]></code>
</InvalidArgument>
<InvalidArrayOffset>
<code>$tokens[$j - 1]</code>
</InvalidArrayOffset>
Expand Down Expand Up @@ -237,9 +198,6 @@
</PossiblyNullReference>
</file>
<file src="src/Report/Xml/Tests.php">
<MissingPropertyType>
<code>$codeMap</code>
</MissingPropertyType>
<PossiblyNullReference>
<code>createElementNS</code>
</PossiblyNullReference>
Expand Down Expand Up @@ -295,9 +253,6 @@
<code>toString</code>
</PossiblyUndefinedMethod>
<RedundantConditionGivenDocblockType>
<code>$node instanceof Function_</code>
<code>$node instanceof Function_</code>
<code>$type instanceof ComplexType</code>
<code><![CDATA[assert($node->namespacedName instanceof Name)]]></code>
<code><![CDATA[assert($node->namespacedName instanceof Name)]]></code>
<code><![CDATA[assert($parentNode->namespacedName instanceof Name)]]></code>
Expand All @@ -310,9 +265,4 @@
<code><![CDATA[$storage = &$this->traits]]></code>
</UnsupportedPropertyReferenceUsage>
</file>
<file src="src/Version.php">
<DocblockTypeContradiction>
<code>self::$version === null</code>
</DocblockTypeContradiction>
</file>
</files>
48 changes: 48 additions & 0 deletions ChangeLog-10.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# ChangeLog

All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [10.1.4] - 2023-08-31

### Fixed

* Exceptions of type `SebastianBergmann\Template\Exception` are now properly handled

## [10.1.3] - 2023-07-26

### Changed

* The result of `CodeCoverage::getReport()` is now cached

### Fixed

* 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

## [10.1.2] - 2023-05-22

### Fixed

* [#998](https://github.com/sebastianbergmann/php-code-coverage/pull/998): Group Use Declarations are not handled properly

## [10.1.1] - 2023-04-17

### Fixed

* [#994](https://github.com/sebastianbergmann/php-code-coverage/issues/994): Argument `$linesToBeIgnored` of `CodeCoverage::stop()` has no effect for files that are not executed at all

## [10.1.0] - 2023-04-13

### Added

* [#982](https://github.com/sebastianbergmann/php-code-coverage/issues/982): Add option to ignore lines from code coverage

### Deprecated

* The `SebastianBergmann\CodeCoverage\Filter::includeDirectory()`, `SebastianBergmann\CodeCoverage\Filter::excludeDirectory()`, and `SebastianBergmann\CodeCoverage\Filter::excludeFile()` methods are now deprecated

[10.1.4]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.3...10.1.4
[10.1.3]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.2...10.1.3
[10.1.2]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.1...10.1.2
[10.1.1]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.0...10.1.1
[10.1.0]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.0.2...10.1.0
Loading