Skip to content

Commit

Permalink
Merge pull request #99 from endsoonconfess/issue-97-missing-return-ty…
Browse files Browse the repository at this point in the history
…pe-deprecation-notice
  • Loading branch information
eymengunay authored Jun 22, 2023
2 parents 3de781a + 2a35bd3 commit 37157ec
Show file tree
Hide file tree
Showing 3 changed files with 9 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);
}
}
}
1 change: 1 addition & 0 deletions src/Passbook/Pass/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function getDensity()
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getExtension()
{
if ($this->forceExtension) {
Expand Down

0 comments on commit 37157ec

Please sign in to comment.