Skip to content

Commit

Permalink
Laravel 6.0 Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinjuan committed Sep 15, 2019
1 parent ea177ed commit 53d2919
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"php": ">=7.2",
"ext-json": "*",
"moneyphp/money": "^3.2",
"konekt/enum-eloquent": "^1.2",
"carbondate/carbon": "^1.33"
"konekt/enum-eloquent": "^1.3",
"nesbot/carbon": "^2.24"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Payments/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function setPaidAttribute(Money $money)
public function setCompletedAtAttribute(Carbon $completed_at)
{
if ($this->completed_at) {
throw new Exception('The completed_at attribute can only be set once');
throw new Exception('The completed_at attribute cannot be overridden.');
}

$this->attributes['completed_at'] = $completed_at;
Expand Down
2 changes: 1 addition & 1 deletion src/Payments/PaymentState.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class PaymentState extends Enum
{

const __default = self::PENDING;
const __DEFAULT = self::PENDING;

const PENDING = 'pending';

Expand Down

0 comments on commit 53d2919

Please sign in to comment.