mirror of
https://github.com/flarum/core.git
synced 2025-07-28 04:00:40 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
StyleCI Bot
parent
c87c2bcd4c
commit
56ef8b4613
@@ -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]
|
||||
|
@@ -204,6 +204,7 @@ class ModelTest extends TestCase
|
||||
(new Extend\Model(Group::class))
|
||||
->default('counter', function () {
|
||||
static $counter = 0;
|
||||
|
||||
return ++$counter;
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user