Skip to content

Commit

Permalink
fix(spotify): deprecation notice
Browse files Browse the repository at this point in the history
8192: explode(): Passing null to parameter #2 ($string) of type string is deprecated in bridges/SpotifyBridge.php line 322
  • Loading branch information
dvikan committed Jan 23, 2024
1 parent feb2a68 commit 9b1d220
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bridges/SpotifyBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,10 @@ public function getName()

private function getFirstEntry()
{
$uris = explode(',', $this->getInput('spotifyuri'));
if (!is_null($this->getInput('spotifyuri')) && strpos($this->getInput('spotifyuri'), ',') === false) {
$spotifyUri = $this->getInput('spotifyuri');

if (!is_null($spotifyUri) && strpos($spotifyUri, ',') === false) {
$uris = explode(',', $spotifyUri);
$firstUri = $uris[0];
$type = explode(':', $firstUri)[1];
$spotifyId = explode(':', $firstUri)[2];
Expand Down

0 comments on commit 9b1d220

Please sign in to comment.