A function has been called, but not defined. This will result in a run time fatal error.
This issue can be raised for any of the following cases:
class User
{
public function getName()
{
$lower = make_string_lowercase('JOHN DOE'); // function doesn't exist
return $lower;
}
}
class Utility
{
public function sanitizeText()
{
$text = htmlSpecialChars("<a href='/about'>About</a>"); // incorrect function case
return $text;
}
}
function make_string_lowercase($str)
{
return strtolower($str);
}
class User
{
public function getName()
{
$lower = make_string_lowercase('JOHN DOE');
return $lower;
}
}
class Utility
{
public function sanitizeText()
{
$text = htmlspecialchars("<a href='/about'>About</a>");
return $text;
}
}