Skip to content

Commit 62acc52

Browse files
committed
Use className method instead of ::class
1 parent bdb57b3 commit 62acc52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/views/embedded-input.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
],
5151
[
5252
'name' => 'answers',
53-
'type' => MultipleInput::class,
53+
'type' => MultipleInput::className(),
5454
'options' => [
5555
'attributeOptions' => $commonAttributeOptions,
5656
'columns' => [

src/MultipleInputColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected function renderWidget($type, $name, $value, $options)
131131
// Extend options in case of rendering embedded MultipleInput
132132
// We have to pass to the widget an original model and an attribute to be able get a first error from model
133133
// for embedded widget.
134-
if ($type === MultipleInput::class && strpos($name, $this->renderer->getIndexPlaceholder()) === false) {
134+
if ($type === MultipleInput::className() && strpos($name, $this->renderer->getIndexPlaceholder()) === false) {
135135
$model = $this->context->model;
136136

137137
// in case of embedding level 2 and more

0 commit comments

Comments
 (0)