gabordemooij / redbean

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

Facade documentation error #867

Closed psychopatt closed 2 years ago

psychopatt commented 3 years ago

I think there is an error in the documentation for findOneForUpdate : it states that it returns an array when it returns a single bean or null.

https://github.com/gabordemooij/redbean/blob/f37c4cf4d0e646851720940fc53acdacfbdeba4e/RedBeanPHP/Facade.php#L812 I guess this line should be replaced with @return OODBBean|NULL as for findOne?