gabordemooij / redbean

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

Documentation fixes & improvements #898

Closed MangoMarcus closed 2 years ago

MangoMarcus commented 2 years ago

Various documentation fixes including:

These changes help static analysers identify problems and make suggestions. For example, using @return OODBBean[] can provide type information even when iterating:

foreach ( R::findAll('book') as $book ) {
  // IDEs now know $book's type and can make suggestions like auto-completion or help with method signatures
}
gabordemooij commented 2 years ago

Awesome! Thank you very much!