mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
add psalm and travis check
This commit is contained in:
@@ -20,6 +20,6 @@ class HeavyBankAccount implements BankAccount
|
||||
// years and decades ago must be fetched from a database or web service
|
||||
// and the balance must be calculated from it
|
||||
|
||||
return array_sum($this->transactions);
|
||||
return (int) array_sum($this->transactions);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user