From 53d29193c97327b6b4a8a3fc76da71a999887b2f Mon Sep 17 00:00:00 2001 From: Juan Date: Sun, 15 Sep 2019 19:14:15 -0300 Subject: [PATCH] Laravel 6.0 Upgrade --- composer.json | 4 ++-- src/Payments/Payment.php | 2 +- src/Payments/PaymentState.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index d570634..6d2b857 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Payments/Payment.php b/src/Payments/Payment.php index 4091e48..d93d5b1 100644 --- a/src/Payments/Payment.php +++ b/src/Payments/Payment.php @@ -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; diff --git a/src/Payments/PaymentState.php b/src/Payments/PaymentState.php index dcabde6..8c025f0 100644 --- a/src/Payments/PaymentState.php +++ b/src/Payments/PaymentState.php @@ -7,7 +7,7 @@ class PaymentState extends Enum { - const __default = self::PENDING; + const __DEFAULT = self::PENDING; const PENDING = 'pending';