Skip to content

chore(PLATFORM-10076): migrate PageForms #7

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

Draft
wants to merge 5 commits into
base: REL1_43
Choose a base branch
from

Conversation

mmeller-wikia
Copy link

No description provided.

@@ -1038,7 +1040,7 @@ function formHTML(
$brackets_end_loc = strpos( $section, "}}}", $brackets_loc );
// For cases with more than 3 ending brackets,
// take the last 3 ones as the tag end.
while ( $section[$brackets_end_loc + 3] == "}" ) {
while ( isset( $section[$brackets_end_loc + 3] ) && $section[$brackets_end_loc + 3] == "}" ) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while ( ( $section[$brackets_end_loc + 3] ?? null ) == "}" ) {
might be more readable

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong opinion, but I would stick to isset in this case as it is more explicit - checking whether element exist
Using ?? null hides this intention - we are comparing null == "}" instead when element is not set

wladekb and others added 4 commits March 20, 2025 13:18
PLATFORM-10860: Fix invalid arguments in ArticleUpdateBeforeRedirect hook call
chore(PLATFORM-10999): update CargoUtils::getDB to use DB_REPLICA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants