-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[5.3] Use Null Coalescing Assignment Operator For Components #44878
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
Changes from 1 commit
e020d4b
461165b
7045b5b
9cb92d0
99ec424
9222abd
34afc91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -368,7 +368,7 @@ public static function getMenuItems($menutype, $enabledOnly = false, $exclude = | |
| if ($menuitem->link = \in_array($menuitem->type, ['separator', 'heading', 'container']) ? '#' : trim($menuitem->link)) { | ||
| $menuitem->submenu = []; | ||
| $menuitem->class = $menuitem->img ?? ''; | ||
| $menuitem->scope = $menuitem->scope ?? null; | ||
| $menuitem->scope ??= null; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code style, and the line above is basically exact the same but is not converted?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fixed that code style before, but our PHPCS does not allow it passed, so I had to revert the fix back. We have strange behavior with PHPCS for ??= operator here. For the line above, if you are talking about the line
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, then we can't merge this, until cs checker is fixed. (and yes you are right above is not the same) |
||
| $menuitem->target = $menuitem->browserNav ? '_blank' : ''; | ||
| } | ||
|
|
||
|
|
@@ -750,7 +750,7 @@ public static function preprocess($item) | |
|
|
||
| if ($item->link = \in_array($item->type, ['separator', 'heading', 'container']) ? '#' : trim($item->link)) { | ||
| $item->class = $item->img ?? ''; | ||
| $item->scope = $item->scope ?? null; | ||
| $item->scope ??= null; | ||
| $item->target = $item->browserNav ? '_blank' : ''; | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.