Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
money-datatype
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
package
money-datatype
Commits
a16653af
Commit
a16653af
authored
Jul 13, 2016
by
Thorsten Buss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: set key in array repository for indexed arrays
parent
b9658ec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ArrayRepository.php
src/Money/Repositories/ArrayRepository.php
+3
-1
No files found.
src/Money/Repositories/ArrayRepository.php
View file @
a16653af
...
...
@@ -22,7 +22,9 @@ class ArrayRepository implements CurrencyRepositoryInterface {
* @param array $currencies
*/
public
function
__construct
(
array
$currencies
)
{
$this
->
currencies
=
$currencies
;
foreach
(
$currencies
as
$currency
)
{
$this
->
currencies
[
$currency
[
'code'
]]
=
$currency
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment