File tree Expand file tree Collapse file tree 15 files changed +28
-49
lines changed Expand file tree Collapse file tree 15 files changed +28
-49
lines changed Original file line number Diff line number Diff line change 1
- /.gitattributes export-ignore
2
- /.gitignore export-ignore
3
- /.github export-ignore
4
- /.phive export-ignore
5
- /.php-cs-fixer.dist.php export-ignore
6
- /.psalm export-ignore
7
- /build export-ignore
8
- /build.xml export-ignore
9
- /phpunit.xml export-ignore
10
- /tests export-ignore
11
- /tools export-ignore
12
- /tools /* binary
1
+ /.gitattributes export-ignore
2
+ /.gitignore export-ignore
3
+ /.github export-ignore
4
+ /.phive export-ignore
5
+ /.php-cs-fixer.dist.php export-ignore
6
+ /build export-ignore
7
+ /build.xml export-ignore
8
+ /phpstan.neon export-ignore
9
+ /phpunit.xml export-ignore
10
+ /tests export-ignore
11
+ /tools export-ignore
12
+ /tools /* binary
13
13
14
14
* .php diff =php
Original file line number Diff line number Diff line change 31
31
- name : Run PHP-CS-Fixer
32
32
run : ./tools/php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose
33
33
34
- type-checker :
35
- name : Type Checker
34
+ static-analysis :
35
+ name : Static Analysis
36
36
37
37
runs-on : ubuntu-latest
38
38
49
49
- name : Install dependencies with Composer
50
50
run : ./tools/composer update --no-interaction --no-ansi --no-progress
51
51
52
- - name : Run Psalm
53
- run : ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
52
+ - name : Run PHPStan
53
+ run : ./tools/phpstan analyse --no-progress --error-format=github
54
54
55
55
tests :
56
56
name : Tests
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phive xmlns =" https://phar.io/phive" >
3
- <phar name =" php-cs-fixer" version =" ^3.0 " installed =" 3.41.1 " location =" ./tools/php-cs-fixer" copy =" true" />
4
- <phar name =" psalm " version =" ^5.0 " installed =" 5.18.0 " location =" ./tools/psalm " copy =" true" />
5
- <phar name =" composer " version =" ^2.0.3 " installed =" 2.6.6 " location =" ./tools/composer " copy =" true" />
3
+ <phar name =" php-cs-fixer" version =" ^3.59 " installed =" 3.59.3 " location =" ./tools/php-cs-fixer" copy =" true" />
4
+ <phar name =" composer " version =" ^2.7 " installed =" 2.7.7 " location =" ./tools/composer " copy =" true" />
5
+ <phar name =" phpstan " version =" ^1.11 " installed =" 1.11.5 " location =" ./tools/phpstan " copy =" true" />
6
6
</phive >
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Latest Stable Version] ( https://poser.pugx.org/phpunit/php-timer/v/stable.png )] ( https://packagist.org/packages/phpunit/php-timer )
4
4
[ ![ CI Status] ( https://github.com/sebastianbergmann/php-timer/workflows/CI/badge.svg )] ( https://github.com/sebastianbergmann/php-timer/actions )
5
- [ ![ Type Coverage] ( https://shepherd.dev/github/sebastianbergmann/php-timer/coverage.svg )] ( https://shepherd.dev/github/sebastianbergmann/php-timer )
6
5
[ ![ codecov] ( https://codecov.io/gh/sebastianbergmann/php-timer/branch/main/graph/badge.svg )] ( https://codecov.io/gh/sebastianbergmann/php-timer )
7
6
8
7
Utility class for timing things, factored out of PHPUnit into a stand-alone component.
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ level : 9
3
+ paths :
4
+ - src
5
+ - tests
Original file line number Diff line number Diff line change 13
13
use function sprintf ;
14
14
15
15
/**
16
- * @psalm- immutable
16
+ * @immutable
17
17
*/
18
18
final readonly class Duration
19
19
{
Original file line number Diff line number Diff line change 17
17
final class ResourceUsageFormatter
18
18
{
19
19
/**
20
- * @psalm- var array<string,int>
20
+ * @var array<string,int>
21
21
*/
22
22
private const SIZES = [
23
23
'GB ' => 1073741824 ,
Original file line number Diff line number Diff line change 15
15
final class Timer
16
16
{
17
17
/**
18
- * @psalm- var list<float>
18
+ * @var list<float>
19
19
*/
20
20
private array $ startTimes = [];
21
21
You can’t perform that action at this time.
0 commit comments