Skip to content

Commit 0ce3464

Browse files
committed
Component::getParameter() $default is deprecated
1 parent a7e614e commit 0ce3464

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Application/UI/Component.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public function saveState(array &$params): void
193193
final public function getParameter(string $name): mixed
194194
{
195195
if (func_num_args() > 1) {
196+
trigger_error(__METHOD__ . '() parameter $default is deprecated, use operator ??', E_USER_DEPRECATED);
196197
$default = func_get_arg(1);
197198
}
198199
return $this->params[$name] ?? $default ?? null;

0 commit comments

Comments
 (0)