Skip to content

Commit 690500f

Browse files
committed
Fixed PHPStan level 8 issues
1 parent c70f382 commit 690500f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Pipeline Contracts
2+
===
3+
4+
This package aims at providing contracts for an Extract-Load-Pattern,
5+
with logging, line rejections and execution states.
6+
7+
8+
[![Quality](https://github.com/php-etl/pipeline-contracts/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/quality.yaml)
9+
[![PHPStan level 5](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-5.yaml)
10+
[![PHPStan level 7](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-7.yaml)
11+
[![PHPStan level 8](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/phpstan-8.yaml)
12+
[![Mutations](https://github.com/php-etl/pipeline-contracts/actions/workflows/infection.yaml/badge.svg)](https://github.com/php-etl/pipeline-contracts/actions/workflows/infection.yaml)
13+
![PHP](https://img.shields.io/packagist/php-v/php-etl/pipeline-contracts)
14+

src/NullRejection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public function initialize(): void
99
// NOOP
1010
}
1111

12+
/** @param non-empty-array<mixed>|object $rejection */
1213
public function reject(object|array $rejection, ?\Throwable $exception = null): void
1314
{
1415
// NOOP

src/RejectionInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
interface RejectionInterface
66
{
77
public function initialize(): void;
8+
/** @param non-empty-array<mixed>|object $rejection */
89
public function reject(object|array $rejection, ?\Throwable $exception = null): void;
910
public function teardown(): void;
1011
}

0 commit comments

Comments
 (0)