Skip to content

Commit

Permalink
Add Laravel 6 support (#20)
Browse files Browse the repository at this point in the history
Add Laravel 6 support
  • Loading branch information
antonkomarev committed Sep 4, 2019
1 parent ae1c003 commit 20eccf1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,6 +4,12 @@ All notable changes to `cybercog/laravel-optimus` will be documented in this fil

## [Unreleased]

## [3.4.0] - 2019-09-04

### Added

- ([#20]) Laravel 6 support

## [3.3.0] - 2019-02-26

### Added
Expand Down Expand Up @@ -57,14 +63,16 @@ All notable changes to `cybercog/laravel-optimus` will be documented in this fil

Initial release

[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.3.0...master
[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.4.0...master
[3.4.0]: https://github.com/cybercog/laravel-optimus/compare/3.3.0...3.4.0
[3.3.0]: https://github.com/cybercog/laravel-optimus/compare/3.2.0...3.3.0
[3.2.0]: https://github.com/cybercog/laravel-optimus/compare/3.1.0...3.2.0
[3.1.0]: https://github.com/cybercog/laravel-optimus/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/cybercog/laravel-optimus/compare/2.1.0...3.0.0
[2.1.0]: https://github.com/cybercog/laravel-optimus/compare/2.0.0...2.1.0
[2.0.0]: https://github.com/cybercog/laravel-optimus/compare/1.0.0...2.0.0

[#20]: https://github.com/cybercog/laravel-optimus/pull/20
[#15]: https://github.com/cybercog/laravel-optimus/pull/15
[#14]: https://github.com/cybercog/laravel-optimus/pull/14
[#13]: https://github.com/cybercog/laravel-optimus/pull/13
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -36,15 +36,15 @@
"require": {
"php": "^7.1.3",
"graham-campbell/manager": "^4.0",
"illuminate/contracts": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/contracts": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0",
"illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0",
"jenssegers/optimus": "^0.2.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.10",
"graham-campbell/testbench": "^5.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.5|^7.0"
"phpunit/phpunit": "^6.5|^7.0|^8.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 4 additions & 3 deletions src/OptimusFactory.php
Expand Up @@ -13,6 +13,7 @@

namespace Cog\Laravel\Optimus;

use Illuminate\Support\Arr;
use Jenssegers\Optimus\Optimus;

class OptimusFactory
Expand Down Expand Up @@ -41,9 +42,9 @@ public function make(array $config): Optimus
protected function getConfig(array $config): array
{
return [
'prime' => array_get($config, 'prime', 0),
'inverse' => array_get($config, 'inverse', 0),
'random' => array_get($config, 'random', 0),
'prime' => Arr::get($config, 'prime', 0),
'inverse' => Arr::get($config, 'inverse', 0),
'random' => Arr::get($config, 'random', 0),
];
}

Expand Down

0 comments on commit 20eccf1

Please sign in to comment.