1--TEST--
2Empty on nullsafe method
3--FILE--
4<?php
5
6class Test {
7    public function method($value) {
8        return $value;
9    }
10}
11
12$null = null;
13var_dump(empty($null?->method()));
14$test = new Test;
15var_dump(empty($test?->method(false)));
16var_dump(empty($test?->method(42)));
17
18?>
19--EXPECT--
20bool(true)
21bool(true)
22bool(false)
23