Skip to content

Commit

Permalink
Refactor ConvertManager. Update phpunit to ~7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
apiotrowski committed Nov 12, 2018
1 parent 84f2101 commit 46d3f0d
Show file tree
Hide file tree
Showing 11 changed files with 470 additions and 354 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If you want to convert values not using Convert Manager you can do it directly b
Unit Converter is really simple to use and easy to extend. In a bellow example I show how to use this tool.

```php
$convertManager = new ConvertManager([ LengthConverter::class, WeightConverter::class ]);
$convertManager = new ConvertManager([ new LengthConverter(), new WeightConverter() ]);
$convertedValue = $convertManager->convert('10cm to ?in');
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"ext-bcmath": "*"
},
"require-dev": {
"phpunit/phpunit": "5.3.*"
"phpunit/phpunit": "~7.4"
}
}
Loading

0 comments on commit 46d3f0d

Please sign in to comment.