Skip to content

Fixing few Passing null to strlen() error - #871

Open
AtulR224 wants to merge 2 commits into
phacility:masterfrom
AtulR224:master
Open

AtulR224 wants to merge 2 commits into
phacility:masterfrom
AtulR224:master

Conversation

@AtulR224

@AtulR224 AtulR224 commented Apr 5, 2024

Copy link
Copy Markdown

Fixing few Passing null to strlen() error

// 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
Copy Markdown

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.

@lazerode

Copy link
Copy Markdown

@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