Skip to content

Commit 89e8e85

Browse files
committed
added deprecated notices
1 parent ac8d5d3 commit 89e8e85

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Forms/Container.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public function getUntrustedValues(string|object|null $returnType = null, ?array
174174
/** @deprecated use getUntrustedValues() */
175175
public function getUnsafeValues($returnType, ?array $controls = null)
176176
{
177+
trigger_error(__METHOD__ . '() was renamed to getUntrustedValues()', E_USER_DEPRECATED);
177178
return $this->getUntrustedValues($returnType, $controls);
178179
}
179180

@@ -554,6 +555,7 @@ public function addImageButton(string $name, ?string $src = null, ?string $alt =
554555
/** @deprecated use addImageButton() */
555556
public function addImage(): Controls\ImageButton
556557
{
558+
trigger_error(__METHOD__ . '() was renamed to addImageButton()', E_USER_DEPRECATED);
557559
return $this->addImageButton(...func_get_args());
558560
}
559561

src/Forms/Controls/Checkbox.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function getContainerPrototype(): Html
9292
/** @deprecated use getContainerPrototype() */
9393
public function getSeparatorPrototype(): Html
9494
{
95+
trigger_error(__METHOD__ . '() was renamed to getContainerPrototype()', E_USER_DEPRECATED);
9596
return $this->container;
9697
}
9798
}

0 commit comments

Comments
 (0)