Skip to content

Commit 369351f

Browse files
committed
Component::getParameter() $default is deprecated
1 parent b38ee7c commit 369351f

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
@@ -235,6 +235,7 @@ public function saveStatePartial(array &$params, ComponentReflection $reflection
235235
final public function getParameter(string $name): mixed
236236
{
237237
if (func_num_args() > 1) {
238+
trigger_error(__METHOD__ . '() parameter $default is deprecated, use operator ??', E_USER_DEPRECATED);
238239
$default = func_get_arg(1);
239240
}
240241
return $this->params[$name] ?? $default ?? null;

0 commit comments

Comments
 (0)