Skip to content

Conversation

moufmouf
Copy link
Member

@moufmouf moufmouf commented Sep 3, 2018

The function can legitimately return false!

From the documentation:

<!ENTITY return.falseproblem '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This function may
return Boolean &false;, but may also return a non-Boolean value which
evaluates to &false;. Please read the section on <link
linkend="language.types.boolean">Booleans</link> for more
information. Use <link linkend="language.operators.comparison">the ===
operator</link> for testing the return value of this
function.</simpara></warning>'>

@moufmouf moufmouf merged commit 209a67c into thecodingmachine:master Sep 6, 2018
Kharhamel added a commit to Kharhamel/safe that referenced this pull request Apr 19, 2021
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.

1 participant