Skip to content

Conversation

AtulR224
Copy link

@AtulR224 AtulR224 commented Apr 5, 2024

Fixing few Passing null to strlen() error

@@ -191,7 +191,7 @@ public function didMarkupText() {

// If the name is something meaningful to humans, we'll render this
// in text as: "Title" <link>. Otherwise, we'll just render: <link>.
$is_interesting_name = (bool)strlen($name);
$is_interesting_name = (bool)phutil_nonempty_string($name);
Copy link

Choose a reason for hiding this comment

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

I am guessing you can drop the type cast here.

@cigaryno
Copy link

@epriestley please reject this.

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