From e35759452371f79be77f2624ba6b0f0925377c96 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Sun, 17 Nov 2024 11:14:33 +0100 Subject: [PATCH] Increase PHPStan level --- README.md | 2 +- phpstan.neon.dist | 2 +- phpstan.types.neon.dist | 2 +- src/Relations/BelongsToThrough.php | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b78eaef..5b1c03c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![CI](https://github.com/staudenmeir/belongs-to-through/actions/workflows/ci.yml/badge.svg)](https://github.com/staudenmeir/belongs-to-through/actions/workflows/ci.yml?query=branch%3Amain) [![Code Coverage](https://codecov.io/gh/staudenmeir/belongs-to-through/graph/badge.svg?token=Z4KscVFWIE)](https://codecov.io/gh/staudenmeir/belongs-to-through) -[![PHPStan](https://img.shields.io/badge/PHPStan-level%209-brightgreen.svg?style=flat)](https://github.com/staudenmeir/belongs-to-through/actions/workflows/static-analysis.yml?query=branch%3Amain) +[![PHPStan](https://img.shields.io/badge/PHPStan-level%2010-brightgreen.svg?style=flat)](https://github.com/staudenmeir/belongs-to-through/actions/workflows/static-analysis.yml?query=branch%3Amain) [![Latest Stable Version](https://poser.pugx.org/staudenmeir/belongs-to-through/v/stable)](https://packagist.org/packages/staudenmeir/belongs-to-through) [![Total Downloads](https://poser.pugx.org/staudenmeir/belongs-to-through/downloads)](https://packagist.org/packages/staudenmeir/belongs-to-through/stats) [![License](https://poser.pugx.org/staudenmeir/belongs-to-through/license)](https://github.com/staudenmeir/belongs-to-through/blob/main/LICENSE) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 3e639cd..9228327 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,4 +1,4 @@ parameters: - level: 9 + level: 10 paths: - src diff --git a/phpstan.types.neon.dist b/phpstan.types.neon.dist index 188838b..8b809e8 100644 --- a/phpstan.types.neon.dist +++ b/phpstan.types.neon.dist @@ -1,6 +1,6 @@ includes: - ./vendor/larastan/larastan/extension.neon parameters: - level: 9 + level: 10 paths: - types diff --git a/src/Relations/BelongsToThrough.php b/src/Relations/BelongsToThrough.php index 37a9e55..36d02c6 100644 --- a/src/Relations/BelongsToThrough.php +++ b/src/Relations/BelongsToThrough.php @@ -119,6 +119,7 @@ protected function performJoins(?Builder $query = null) $query->join($model->getTable(), $first, '=', $second); if ($this->hasSoftDeletes($model)) { + /** @var string $column */ /** @phpstan-ignore method.notFound */ $column = $model->getQualifiedDeletedAtColumn();