mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Move import to factory #1222
This commit is contained in:
@@ -290,10 +290,13 @@ class Steam
|
||||
/**
|
||||
* @param string $amount
|
||||
*
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function opposite(string $amount): string
|
||||
public function opposite(string $amount = null): ?string
|
||||
{
|
||||
if (is_null($amount)) {
|
||||
return null;
|
||||
}
|
||||
$amount = bcmul($amount, '-1');
|
||||
|
||||
return $amount;
|
||||
|
Reference in New Issue
Block a user