Skip to content

Commit f32b7ef

Browse files
committed
added deprecated notices
1 parent e6472b7 commit f32b7ef

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
@@ -182,6 +182,7 @@ public function getUntrustedValues(string|object|null $returnType = null, ?array
182182
/** @deprecated use getUntrustedValues() */
183183
public function getUnsafeValues($returnType, ?array $controls = null)
184184
{
185+
trigger_error(__METHOD__ . '() was renamed to getUntrustedValues()', E_USER_DEPRECATED);
185186
return $this->getUntrustedValues($returnType, $controls);
186187
}
187188

@@ -566,6 +567,7 @@ public function addImageButton(string $name, ?string $src = null, ?string $alt =
566567
/** @deprecated use addImageButton() */
567568
public function addImage(): Controls\ImageButton
568569
{
570+
trigger_error(__METHOD__ . '() was renamed to addImageButton()', E_USER_DEPRECATED);
569571
return $this->addImageButton(...func_get_args());
570572
}
571573

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)