Adldap2 / Adldap2-Laravel

LDAP Authentication & Management for Laravel
MIT License
911 stars 185 forks source link

error with method passwordExpired() from Models\User.php #590

Open ricardo91 opened 6 years ago

ricardo91 commented 6 years ago

Description:

<?php use Adldap\Laravel\Facades\Adldap;

        $user = Adldap::search()->users()->find('john doe');
        dd($user->passwordExpired());

?>

Error: DateTime::setTimestamp() expects parameter 1 to be integer, float given

1 2

stevebauman commented 6 years ago

Hi @ricardo91,

Are you using the 32-bit version of PHP?

ricardo91 commented 6 years ago

I'am using a Wamp server 32-bit version 3.13

stevebauman commented 6 years ago

Ok, this is an issue currently when using a 32-bit due to the integer being larger than 32-bit can support, and converting it to a float dynamically.

Going to see if I can resolve it. Thanks!