Tharos / LeanMapper

Lean Mapper is a tiny ORM based on powerful Dibi database abstraction library for PHP.
MIT License
87 stars 35 forks source link

isType method #159

Closed real-antonin closed 3 years ago

real-antonin commented 3 years ago

Hi,

if I want to set bool value to property, Leanmapper throw exception.

Unexpected value type given in property 'property_name' in entity App\EntityName, boolean expected, boolean given.

It's because you comapare same expresions. Shouldn't there be one boolean? :) https://github.com/Tharos/LeanMapper/blob/ecff3dbd21e7230284b9967e674a285efe54989e/src/LeanMapper/Helpers.php#L36

janpecha commented 3 years ago

Thanks, fixed :)