Completed
Push — master ( 82be35...1537c0 )
by Song
02:28
created

src/Form/Field/Datetime.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Encore\Admin\Form\Field;
4
5
class Datetime extends Date
6
{
7
    protected $format = 'YYYY-MM-DD HH:mm:ss';
8
9
    public function render()
10
    {
11
        $this->defaultAttribute('style', 'width: 160px');
12
13
        return parent::render();
0 ignored issues
show
Bug Compatibility introduced by
The expression parent::render(); of type string|Illuminate\View\V...\Contracts\View\Factory adds the type Illuminate\Contracts\View\Factory to the return on line 13 which is incompatible with the return type declared by the interface Illuminate\Contracts\Support\Renderable::render of type string.
Loading history...
14
    }
15
}
16