Skip to content

Commit

Permalink
Fix "str_starts_with(): Passing null to parameter #1 ($haystack) of t…
Browse files Browse the repository at this point in the history
…ype string is deprecated"

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 10, 2023
1 parent 620ede4 commit 9463763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -3996,7 +3996,7 @@ public function sendRequestFullUrl($verb, $fullUrl, $body = null, array $headers
$options = array_merge($options, ['cookies' => $this->getUserCookieJar($this->currentUser)]);
if ($this->currentUser === 'admin') {
$options['auth'] = ['admin', 'admin'];
} elseif (str_starts_with($this->currentUser, 'federation')) {
} elseif ($this->currentUser !== null && str_starts_with($this->currentUser, 'federation')) {
$auth = explode('#', $this->currentUser);
array_shift($auth);
$options['auth'] = $auth;
Expand Down

0 comments on commit 9463763

Please sign in to comment.