Skip to content

Commit 0b79d7d

Browse files
committed
removing php 8 code
1 parent 5761a17 commit 0b79d7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GithubApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function getPullRequestForCommit(string $commit, string $repo): ?array
142142
$bestItem = null;
143143
foreach ($data['items'] as $item) {
144144
// make sure the PR referenced isn't from a different repository
145-
if (!str_contains($item['html_url'], sprintf('%s/pull', $repositoryName))) {
145+
if (false === strpos($item['html_url'], sprintf('%s/pull', $repositoryName))) {
146146
continue;
147147
}
148148

src/Update/RecipePatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function applyPatch(RecipePatch $patch): bool
5959
return true;
6060
}
6161

62-
if (str_contains($this->processExecutor->getErrorOutput(), 'with conflicts')) {
62+
if (false === strpos($this->processExecutor->getErrorOutput(), 'with conflicts')) {
6363
// successful with conflicts
6464
return false;
6565
}

0 commit comments

Comments
 (0)