1--TEST--
2Test nullsafe strict type check
3--FILE--
4<?php
5
6try {
7    false?->bar();
8} catch (Throwable $e) {
9    var_dump($e->getMessage());
10}
11
12try {
13    []?->bar();
14} catch (Throwable $e) {
15    var_dump($e->getMessage());
16}
17
18try {
19    (0)?->bar();
20} catch (Throwable $e) {
21    var_dump($e->getMessage());
22}
23
24try {
25    (0.0)?->bar();
26} catch (Throwable $e) {
27    var_dump($e->getMessage());
28}
29
30try {
31    ''?->bar();
32} catch (Throwable $e) {
33    var_dump($e->getMessage());
34}
35
36?>
37--EXPECT--
38string(39) "Call to a member function bar() on bool"
39string(40) "Call to a member function bar() on array"
40string(38) "Call to a member function bar() on int"
41string(40) "Call to a member function bar() on float"
42string(41) "Call to a member function bar() on string"
43