mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 13:14:37 -04:00
Fixes for tests
This commit is contained in:
parent
da26a1f2f2
commit
74994364ec
@ -40,7 +40,7 @@ class InvoiceWasEmailedAndFailed
|
|||||||
*
|
*
|
||||||
* @param Invoice $invoice
|
* @param Invoice $invoice
|
||||||
*/
|
*/
|
||||||
public function __construct(Invoice $invoice, Company $company, array $errors, array $event_vars)
|
public function __construct(Invoice $invoice, Company $company, string $errors, array $event_vars)
|
||||||
{
|
{
|
||||||
$this->invoice = $invoice;
|
$this->invoice = $invoice;
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
use Illuminate\Support\Carbon;
|
||||||
|
|
||||||
class BaseModel extends Model
|
class BaseModel extends Model
|
||||||
{
|
{
|
||||||
@ -50,7 +51,7 @@ class BaseModel extends Model
|
|||||||
return $this->encodePrimaryKey($this->id);
|
return $this->encodePrimaryKey($this->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function dateMutatorw($value)
|
public function dateMutator($value)
|
||||||
{
|
{
|
||||||
if (!empty($value)) {
|
if (!empty($value)) {
|
||||||
return (new Carbon($value))->format('Y-m-d');
|
return (new Carbon($value))->format('Y-m-d');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user