Skip to content

Commit 16c747f

Browse files
committed
added deprecated notices
1 parent 747e46a commit 16c747f

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
@@ -170,6 +170,7 @@ public function getUntrustedValues(string|object|null $returnType = null, ?array
170170
/** @deprecated use getUntrustedValues() */
171171
public function getUnsafeValues($returnType, ?array $controls = null)
172172
{
173+
trigger_error(__METHOD__ . '() was renamed to getUntrustedValues()', E_USER_DEPRECATED);
173174
return $this->getUntrustedValues($returnType, $controls);
174175
}
175176

@@ -550,6 +551,7 @@ public function addImageButton(string $name, ?string $src = null, ?string $alt =
550551
/** @deprecated use addImageButton() */
551552
public function addImage(): Controls\ImageButton
552553
{
554+
trigger_error(__METHOD__ . '() was renamed to addImageButton()', E_USER_DEPRECATED);
553555
return $this->addImageButton(...func_get_args());
554556
}
555557

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)