Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 315 forks source link

@var not properly evaluated in Validator.php #570

Closed grosch closed 6 years ago

grosch commented 7 years ago

If your class variable is described like:

/**

Then it's not possible to use it as a boolean. If you remove the |null from the @var description then the Validator doesn't fail on it any longer.

Arul- commented 6 years ago

Fixed in Commit f0498cc0bf1a4b0469a99b34fc391320d2b07887

Which is now part of RC6