From c4c87916c34e04aa9d4e860315ab1858304d786a Mon Sep 17 00:00:00 2001 From: Adam Engebretson Date: Wed, 3 Aug 2016 22:49:50 -0500 Subject: [PATCH] Updating for 5.3 --- .travis.yml | 2 +- composer.json | 26 ++++++++++++++++---------- src/Eloquent/FormAccessible.php | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index c574333..9812b0f 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: php php: - - 5.5 - 5.6 - 7.0 + - 7.1 - hhvm sudo: false diff --git a/composer.json b/composer.json index e8461cf..f44eca2 100755 --- a/composer.json +++ b/composer.json @@ -18,17 +18,17 @@ } ], "require": { - "php": ">=5.5.9", - "illuminate/http": "5.2.*", - "illuminate/routing": "5.2.*", - "illuminate/session": "5.2.*", - "illuminate/support": "5.2.*", - "illuminate/view": "5.2.*" + "php": ">=5.6.4", + "illuminate/http": "5.3.*", + "illuminate/routing": "5.3.*", + "illuminate/session": "5.3.*", + "illuminate/support": "5.3.*", + "illuminate/view": "5.3.*" }, "require-dev": { - "illuminate/database": "5.2.*", - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~4.0" + "illuminate/database": "5.3.*", + "mockery/mockery": "~0.9.4", + "phpunit/phpunit": "~5.4" }, "autoload": { "psr-4": { @@ -37,5 +37,11 @@ "files": [ "src/helpers.php" ] - } + }, + "extra": { + "branch-alias": { + "dev-master": "5.3-dev" + } + }, + "minimum-stability": "dev" } diff --git a/src/Eloquent/FormAccessible.php b/src/Eloquent/FormAccessible.php index 5a42608..a3632c8 100644 --- a/src/Eloquent/FormAccessible.php +++ b/src/Eloquent/FormAccessible.php @@ -55,7 +55,7 @@ trait FormAccessible $methods = $this->getReflection()->getMethods(ReflectionMethod::IS_PUBLIC); $mutator = collect($methods) - ->first(function ($index, ReflectionMethod $method) use ($key) { + ->first(function (ReflectionMethod $method) use ($key) { return $method->getName() == 'form' . Str::studly($key) . 'Attribute'; });