Skip to content

Commit

Permalink
Update JiraSecurityIssue.php
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested authored Feb 21, 2024
1 parent fee21b2 commit cc7dc5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JiraSecurityIssue.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct()
$this->issueType = \getenv('JIRA_ISSUE_TYPE') ?: 'Bug';
$this->restrictedCommentRole = \getenv('JIRA_RESTRICTED_COMMENT_ROLE') ?: 'Developers';

$watchers = trim(\getenv('JIRA_WATCHERS'));
$watchers = \trim(\getenv('JIRA_WATCHERS'));

Check failure on line 83 in src/JiraSecurityIssue.php

View workflow job for this annotation

GitHub Actions / PHPStan

[PHPStan] src/JiraSecurityIssue.php#L83

Parameter #1 $string of function trim expects string, string|false given.
Raw output
src/JiraSecurityIssue.php:83:1: error: Parameter #1 $string of function trim expects string, string|false given. ()

if ($watchers) {
$this->watchers = \explode(',', $watchers);
Expand Down

0 comments on commit cc7dc5c

Please sign in to comment.