Skip to content

Commit 03d42fd

Browse files
committed
added deprecated notices
1 parent e159355 commit 03d42fd

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

@@ -558,6 +559,7 @@ public function addImageButton(string $name, ?string $src = null, ?string $alt =
558559
/** @deprecated use addImageButton() */
559560
public function addImage(): Controls\ImageButton
560561
{
562+
trigger_error(__METHOD__ . '() was renamed to addImageButton()', E_USER_DEPRECATED);
561563
return $this->addImageButton(...func_get_args());
562564
}
563565

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)