Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid @method annotation in DefaultTemplate #342

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
512cf3b
opened 4.0-dev
dg Dec 14, 2023
84ead12
removed support for Latte 2
dg May 26, 2024
f804fd7
removed compatibility for old class names
dg Oct 15, 2021
e139bab
added type hints (BC break)
dg Feb 8, 2024
3fb24ec
RouteList: array access is deprecated
dg Oct 15, 2021
3e129d4
Presenter::handleInvalidLink() -> processInvalidLink() (BC break)
dg May 12, 2024
1b433e6
Revert "UI\PresenterComponent: removed references created by loadStat…
dg Oct 24, 2022
57696c1
Component: method checkRequirements() is called for createComponent<N…
dg Apr 20, 2024
2cb3f52
Component: only UI components can be added to presenter/component (BC…
dg Apr 7, 2024
df42137
deprecated magic properties except for $template & $payload (BC break)
dg Sep 24, 2021
c3f0057
Component::link() & etc uses variadic parameter
dg Oct 19, 2021
6d6de43
Component::getParameter() $default is deprecated
dg Jun 21, 2022
93bedb4
LinkGenerator: query part in link is deprecated
dg Apr 19, 2024
079601e
Presenter: removed constructor (BC break!)
dg Dec 11, 2023
a78a068
@annotations are deprecated (BC break)
dg Apr 19, 2024
c4f97cb
PresenterFactoryCallback: refreshes page instead of creating presente…
dg Apr 28, 2024
f5d9790
LatteFactory: $control is passed to create() (BC break)
dg Jun 11, 2024
2fa9a9d
PresenterFactory: default mapping is App\UI\*\**Presenter (BC break)
dg Apr 14, 2024
0a10ec6
removed redundant removing ending slash from $basePath - after correc…
mildabre Dec 3, 2024
85eea5f
simplifying injecting $basePath + $baseUrl using corrected UrlScript …
mildabre Dec 3, 2024
77426b6
remove invalid @method annotaions - class is final and it is not poss…
mildabre Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Component::getParameter() $default is deprecated
dg committed Sep 10, 2024
commit 6d6de43fd5695c4ae385a1f536ff6e925477e388
1 change: 1 addition & 0 deletions src/Application/UI/Component.php
Original file line number Diff line number Diff line change
@@ -234,6 +234,7 @@ public function saveStatePartial(array &$params, ComponentReflection $reflection
final public function getParameter(string $name): mixed
{
if (func_num_args() > 1) {
trigger_error(__METHOD__ . '() parameter $default is deprecated, use operator ??', E_USER_DEPRECATED);
$default = func_get_arg(1);
}
return $this->params[$name] ?? $default ?? null;