mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
PHP 7.4 Support
This commit is contained in:
parent
63b331dcc8
commit
b5aee8a8bf
@ -1123,7 +1123,11 @@ class Account extends Eloquent
|
|||||||
Session::put(SESSION_DATE_FORMAT, $this->date_format ? $this->date_format->format : DEFAULT_DATE_FORMAT);
|
Session::put(SESSION_DATE_FORMAT, $this->date_format ? $this->date_format->format : DEFAULT_DATE_FORMAT);
|
||||||
Session::put(SESSION_DATE_PICKER_FORMAT, $this->date_format ? $this->date_format->picker_format : DEFAULT_DATE_PICKER_FORMAT);
|
Session::put(SESSION_DATE_PICKER_FORMAT, $this->date_format ? $this->date_format->picker_format : DEFAULT_DATE_PICKER_FORMAT);
|
||||||
|
|
||||||
$currencyId = ($client && $client->currency_id) ? $client->currency_id : $this->currency_id ?: DEFAULT_CURRENCY;
|
//php 7.3
|
||||||
|
// $currencyId = ($client && $client->currency_id) ? $client->currency_id : $this->currency_id ?: DEFAULT_CURRENCY;
|
||||||
|
//php 7.4
|
||||||
|
$currencyId = ($client && $client->currency_id) ? $client->currency_id : ($this->currency_id ?: DEFAULT_CURRENCY);
|
||||||
|
|
||||||
$locale = ($client && $client->language_id) ? $client->language->locale : ($this->language_id ? $this->Language->locale : DEFAULT_LOCALE);
|
$locale = ($client && $client->language_id) ? $client->language->locale : ($this->language_id ? $this->Language->locale : DEFAULT_LOCALE);
|
||||||
|
|
||||||
Session::put(SESSION_CURRENCY, $currencyId);
|
Session::put(SESSION_CURRENCY, $currencyId);
|
||||||
|
@ -74,7 +74,12 @@ trait Inviteable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $hasValue ? implode($parts, '<br/>') : false;
|
//php 7.3
|
||||||
|
// return $hasValue ? implode($parts, '<br/>') : false;
|
||||||
|
|
||||||
|
|
||||||
|
//php 7.4
|
||||||
|
return $hasValue ? implode('<br/>', $parts) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -52,8 +52,8 @@
|
|||||||
"league/flysystem-rackspace": "~1.0",
|
"league/flysystem-rackspace": "~1.0",
|
||||||
"league/fractal": "0.13.*",
|
"league/fractal": "0.13.*",
|
||||||
"maatwebsite/excel": "~2.0",
|
"maatwebsite/excel": "~2.0",
|
||||||
"mashape/unirest-php": "^3.0",
|
"mashape/unirest-php": "^3.0.5",
|
||||||
"mpdf/mpdf": "7.1.7",
|
"mpdf/mpdf": "^8.0",
|
||||||
"nesbot/carbon": "^1.26",
|
"nesbot/carbon": "^1.26",
|
||||||
"nwidart/laravel-modules": "2.0.*",
|
"nwidart/laravel-modules": "2.0.*",
|
||||||
"omnipay/authorizenet": "dev-solution-id as 2.5.0",
|
"omnipay/authorizenet": "dev-solution-id as 2.5.0",
|
||||||
@ -187,6 +187,10 @@
|
|||||||
{
|
{
|
||||||
"type": "vcs",
|
"type": "vcs",
|
||||||
"url": "https://github.com/hillelcoren/omnipay-authorizenet"
|
"url": "https://github.com/hillelcoren/omnipay-authorizenet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "https://github.com/loverg-c/unirest-php"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
1684
composer.lock
generated
1684
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user