```php class A { public function __construct(private string $val) { } } function foo(A $a) { Assert::inArray($a, [new A('a')]); } ``` gives: > Call to static method Webmozart\Assert\Assert::inArray() with arguments A and array(A) will always evaluate to true