gabordemooij / redbean

ORM layer that creates models, config and database on the fly
https://www.redbeanphp.com
2.3k stars 280 forks source link

Let the parameter to OODBBean equals be nullable #855

Closed rivets closed 3 years ago

rivets commented 3 years ago

Obviously if you pass in NULL then the result is FALSE, but I just had a student make this call and pass it a NULL value. Yes, you could check before you call it, but it does not seem to be unreasonable change to make. It's backwards compatible and would eliminate the need for the test.

gabordemooij commented 3 years ago

Looks like a good idea