While using `"laravel/framework": "5.8.*",`

I get the following error:

```
    $user = App\User::find(314);
    dump(PHP_VERSION);
    dump(is_object($user));
    dump(is_array($user));
    dump(count($user));
    dd($user);

```

I get the following error `count(): Parameter must be an array or an object that implements Countable`

However when I silence the warning. We get the correct output `@dump(count($user));`

```
"7.2.19"
true
false
1
User {#821 ▼
  #table: "users"
  #guarded: array:5 [▶]

....

```

---

Note: **count() works when** the collection has more than 1.

```
    $users = App\User::find([12,13,14,15,165,166,1666,133,11,111]);
    dump(PHP_VERSION);
    dump(is_object($user));
    dump(is_array($user));
    dump(count($user));
    dd($user);

```

output:

```
"7.2.19"
true
false
9
Collection {#825 ▼
  #items: array:9 [▶]
}

```