laravel-money icon indicating copy to clipboard operation
laravel-money copied to clipboard

Non Existent Method Calls return $this

Open AntonLugtenburg opened this issue 1 year ago • 0 comments

Hi Guys,

i had a hard time finding a typo (postive -> *posItive) when calling

if(money(0)->isPostive())

always resulting to true because no fatal error is returned when doing so.

Why does the __call method return the money object when a called method does not exist ?

Sorry if this is basic php knowledge, but it seemed weird to me.

Thank you :)

AntonLugtenburg avatar Dec 23 '23 18:12 AntonLugtenburg