Skip to content

Commit

Permalink
PHP 5.6 fixes for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed Apr 27, 2018
1 parent 5ea9a03 commit 6bc1986
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2


before_script:
Expand Down
4 changes: 2 additions & 2 deletions src/HydratableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(array $data = [])
$this->setFromArray($data);
}

public function isSet()
public function hasValues()
{
return $this->_hydratableIsSet;
}
Expand All @@ -56,7 +56,7 @@ public function isSet()
*/
public function isEmpty()
{
return ! $this->isSet();
return ! $this->hasValues();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Response/Models/PaymentRejectionReason.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PaymentRejectionReason implements ModelInterface
/**
* @return bool true if this object contains a value.
*/
public function isSet()
public function hasValues()
{
return $this->code !== null || $this->description !== null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ServerRequest/FpsRedirectionNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FpsRedirectionNotification extends AbstractServerRequest
'redirectedAccount',
];

public function isSet()
public function hasValues()
{
return $this->notificationUid !== null
|| $this->paymentUid !== null
Expand Down
2 changes: 1 addition & 1 deletion tests/Response/PaymentAccountAddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testFromArray()
$paymentAccountAddress->fasterPaymentsStatus
);
$this->assertSame(
$paymentAccountAddress->fasterPaymentsStatus::ADDRESS_FPS_STATUS_ENABLED,
$paymentAccountAddress::ADDRESS_FPS_STATUS_ENABLED,
$paymentAccountAddress->fasterPaymentsStatus->outboundStatus
);
}
Expand Down

0 comments on commit 6bc1986

Please sign in to comment.