Skip to content

Commit

Permalink
Fix: Passing null to parameter of type string is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
endsoonconfess committed Jun 20, 2023
1 parent ec07441 commit 2a35bd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Passbook/Pass.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ class Pass implements PassInterface
* @var array
*/
protected $beacons = [];

/**
* NFC where the pass is relevant.
*
* @var array
*/
protected $nfc = [];


/**
* A list of iTunes Store item identifiers (also known as Adam IDs) for the
Expand Down Expand Up @@ -185,8 +185,8 @@ class Pass implements PassInterface
* @var string
*/
protected $logoText;



/**
* If true, the strip image is displayed without a shine effect.
Expand Down Expand Up @@ -761,7 +761,7 @@ public function setAuthenticationToken($authenticationToken)
*/
public function getAuthenticationToken()
{
return $this->authenticationToken;
return (string) $this->authenticationToken;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Passbook/Pass/DateField.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function setDateStyle($dateStyle)
*/
public function getDateStyle()
{
return $this->dateStyle;
return (string) $this->dateStyle;
}

/**
Expand Down Expand Up @@ -139,7 +139,7 @@ public function setTimeStyle($timeStyle)
*/
public function getTimeStyle()
{
return $this->timeStyle;
return (string) $this->timeStyle;
}

/**
Expand All @@ -154,4 +154,4 @@ public function setValue($value){

return parent::setValue($value);
}
}
}

0 comments on commit 2a35bd3

Please sign in to comment.