maxonfjvipon / elegant-elephant

Elegant object oriented php primitives library
MIT License
10 stars 1 forks source link

Negation class: overloading 'boolean', not 'bool #10

Closed maxonfjvipon closed 2 years ago

maxonfjvipon commented 2 years ago
return !self::overload([$this->origin], [[
    'bool',
    Logical::class => fn(Logical $log) => $log->asBool()
]])[0];