Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .github/workflows/infection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v2
Expand All @@ -19,12 +19,12 @@ jobs:
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
php_version: 8.1

- name: Infection
run: |
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar.asc
wget -q https://github.com/infection/infection/releases/download/0.26.10/infection.phar
wget -q https://github.com/infection/infection/releases/download/0.26.10/infection.phar.asc
chmod +x infection.phar
./infection.phar

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phpstan-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
php_version: 8.1
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 5
php_version: 8.0
args: --level=5
php_version: 8.1
6 changes: 3 additions & 3 deletions .github/workflows/phpstan-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
php_version: 8.1
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 7
php_version: 8.0
args: --level=7
php_version: 8.1
6 changes: 3 additions & 3 deletions .github/workflows/phpstan-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
php_version: 8.1
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 8
php_version: 8.0
args: --level=8
php_version: 8.1
15 changes: 8 additions & 7 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quality (PHPStan level 4)
name: Quality
on: push
jobs:
cs-fixer:
Expand All @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v2
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run

Expand All @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v2
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
php_version: 8.1
- name: Run tests & generate Coverage
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
- name: Store coverage files
Expand All @@ -50,10 +50,11 @@ jobs:
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
php_version: 8.1

- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 4
php_version: 8.0
args: --level=4
php_version: 8.1
4 changes: 3 additions & 1 deletion src/Assert/BuilderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/ExtractorAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/ExtractorBuilderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/LoaderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/LoaderBuilderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/PipelineAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/PipelineBuilderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/TransformerAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/Assert/TransformerBuilderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Assert;

Expand Down
4 changes: 3 additions & 1 deletion src/BuilderAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension;

Expand Down
4 changes: 3 additions & 1 deletion src/BuilderTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension;

Expand Down
4 changes: 3 additions & 1 deletion src/Constraint/Pipeline/IteratesLike.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Constraint\Pipeline;

Expand Down
4 changes: 3 additions & 1 deletion src/Constraint/Pipeline/PipelineExtractsLike.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Constraint\Pipeline;

Expand Down
4 changes: 3 additions & 1 deletion src/Constraint/Pipeline/PipelineLoadsLike.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Constraint\Pipeline;

Expand Down
4 changes: 3 additions & 1 deletion src/Constraint/Pipeline/PipelineTransformsLike.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Constraint\Pipeline;

Expand Down
4 changes: 3 additions & 1 deletion src/Constraint/Pipeline/PipelineWritesFile.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Constraint\Pipeline;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/ApiClientMockBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/ExceptionBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/FileSystemBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
8 changes: 5 additions & 3 deletions src/Mock/HttpClientBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand All @@ -9,7 +11,7 @@

final class HttpClientBuilder implements Builder
{
/** @var Node\expr[] */
/** @var Node\Expr[] */
private array $nodes;

public function __construct(
Expand Down Expand Up @@ -41,7 +43,7 @@ public function expectException(
Mock\RequestMatcher\RequestMatcherBuilderInterface $requestMatcher,
Mock\ExceptionBuilder $exception,
): self {
$this->node = new Node\Expr\MethodCall(
$this->nodes[] = new Node\Expr\MethodCall(
var: new Node\Expr\Variable('client'),
name: new Node\Identifier('on'),
args: [
Expand Down
4 changes: 3 additions & 1 deletion src/Mock/RequestFactory.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/RequestFactoryBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
7 changes: 5 additions & 2 deletions src/Mock/RequestMatcher/RequestMatcherBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock\RequestMatcher;

Expand All @@ -11,7 +13,8 @@ public function __construct(
private ?string $host = null,
private $methods = [],
private $schemes = []
) {}
) {
}

public function getNode(): Node
{
Expand Down
4 changes: 3 additions & 1 deletion src/Mock/RequestMatcher/RequestMatcherBuilderInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock\RequestMatcher;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/ResponseBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/ResponseFactory.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/ResponseFactoryBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/Mock/StreamFactoryBuilder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension\Mock;

Expand Down
4 changes: 3 additions & 1 deletion src/PipelineAssertTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension;

Expand Down
4 changes: 3 additions & 1 deletion src/PipelineRunner.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Kiboko\Component\PHPUnitExtension;

Expand Down
Loading