This question already has an answer here:
I have a really simple line of code:
if(empty(trim($this->name)) {
$this->error = "Name required";
return false;
}
This code works splendidly on my development environment, but throws a fatal error in production:
Can't use function return value in write context
Why is this, and more importantly, what do I need to change in my development environment so that my code behaves the same (aka breaks) on the development environment and in production?
Many thanks.
</div>