From 561e8c6b6a550b360e7d5dabac1c3f3262956c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 7 Oct 2020 11:38:52 +0200 Subject: [PATCH] Add test for model object argument in callable for attribute defaults --- tests/integration/extenders/ModelTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/extenders/ModelTest.php b/tests/integration/extenders/ModelTest.php index dc0629332..1dd4fc057 100644 --- a/tests/integration/extenders/ModelTest.php +++ b/tests/integration/extenders/ModelTest.php @@ -277,7 +277,7 @@ class ModelTest extends TestCase { $this->extend( (new Extend\Model(Group::class)) - ->default('counter', function () { + ->default('counter', function (Group $group) { static $counter = 0; return ++$counter;