From 8f17795e9b702636488a0d4f5fa8127062808deb Mon Sep 17 00:00:00 2001 From: dimitri-bouteille Date: Sun, 11 Feb 2024 18:20:02 +0100 Subject: [PATCH] Fix rector CI --- .github/workflows/styles.yml | 6 +++--- src/Tests/Unit/Models/CustomPostTypeTest.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/styles.yml b/.github/workflows/styles.yml index 249486ce..a1967205 100644 --- a/.github/workflows/styles.yml +++ b/.github/workflows/styles.yml @@ -24,8 +24,8 @@ jobs: - name: PHPCsFixer run: composer csFixer - - name: PHPStan Analyse - run: composer phpstan - - name: Rector run: composer rector + + - name: PHPStan Analyse + run: composer phpstan diff --git a/src/Tests/Unit/Models/CustomPostTypeTest.php b/src/Tests/Unit/Models/CustomPostTypeTest.php index 95932f41..ec158be2 100644 --- a/src/Tests/Unit/Models/CustomPostTypeTest.php +++ b/src/Tests/Unit/Models/CustomPostTypeTest.php @@ -20,10 +20,10 @@ class CustomPostTypeTest extends TestCase { /** * @throws \Dbout\WpOrm\Exceptions\NotAllowedException - * @return void + * @return never * @covers ::setPostType */ - public function testSetPostTypeException(): void + public function testSetPostTypeException(): never { $model = new Attachment(); $this->expectException(CannotOverrideCustomTypeException::class);