Skip to content

Commit

Permalink
added deprecated notices
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 30, 2024
1 parent 01fb179 commit ba62ed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Forms/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public function getUntrustedValues(string|object|null $returnType, ?array $contr
/** @deprecated use getUntrustedValues() */
public function getUnsafeValues($returnType, ?array $controls = null)
{
trigger_error(__METHOD__ . '() was renamed to getUntrustedValues()', E_USER_DEPRECATED);
return $this->getUntrustedValues($returnType, $controls);
}

Expand Down Expand Up @@ -574,6 +575,7 @@ public function addImageButton(string $name, ?string $src = null, ?string $alt =
/** @deprecated use addImageButton() */
public function addImage(): Controls\ImageButton
{
trigger_error(__METHOD__ . '() was renamed to addImageButton()', E_USER_DEPRECATED);
return $this->addImageButton(...func_get_args());
}

Expand Down
1 change: 1 addition & 0 deletions src/Forms/Controls/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function getContainerPrototype(): Html
/** @deprecated use getContainerPrototype() */
public function getSeparatorPrototype(): Html
{
trigger_error(__METHOD__ . '() was renamed to getContainerPrototype()', E_USER_DEPRECATED);
return $this->container;
}
}

0 comments on commit ba62ed4

Please sign in to comment.