Skip to content

Commit 800f099

Browse files
committed
Set PHPStan to level 8
1 parent 8ab27d0 commit 800f099

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 7
2+
level: 8
33
reportUnmatchedIgnoredErrors: false
44
paths:
55
- src

src/Api/Label/GithubLabelApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function getAllLabelsForRepository(Repository $repository): array
115115
}
116116

117117
/**
118-
* @return string[]
118+
* @return list<string>
119119
*/
120120
public function getComponentLabelsForRepository(Repository $repository): array
121121
{
@@ -136,7 +136,7 @@ public function getComponentLabelsForRepository(Repository $repository): array
136136
}
137137

138138
/**
139-
* @return array<string, array{name: string, color: string}>
139+
* @return array<array{name: string, color: string}>
140140
*/
141141
private function getAllLabels(Repository $repository): array
142142
{

src/Subscriber/AutoUpdateTitleWithLabelSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function onPullRequest(GitHubEvent $event): void
7373
}
7474

7575
// Clean string from all HTML chars and remove whitespace at the beginning
76-
$prTitle = preg_replace('@^[\h\s]+@u', '', html_entity_decode($prTitle));
76+
$prTitle = (string) preg_replace('@^[\h\s]+@u', '', html_entity_decode($prTitle));
7777

7878
// Add back labels
7979
$prTitle = trim($prPrefix.' '.trim($prTitle));

0 commit comments

Comments
 (0)