Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Franz Liedke 2020-04-24 14:56:37 +00:00 committed by StyleCI Bot
parent 9386c91af9
commit 036e519865
2 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,9 @@ class Model implements ExtenderInterface
*/
public function dateAttribute(string $attribute)
{
Arr::set(AbstractModel::$dateAttributes, $this->modelClass,
Arr::set(
AbstractModel::$dateAttributes,
$this->modelClass,
array_merge(
Arr::get(AbstractModel::$dateAttributes, $this->modelClass, []),
[$attribute]

View File

@ -204,6 +204,7 @@ class ModelTest extends TestCase
(new Extend\Model(Group::class))
->default('counter', function () {
static $counter = 0;
return ++$counter;
})
);