xref: /PHP-8.3/Zend/tests/bug78770.phpt (revision ee510eed)
1--TEST--
2Bug #78770: Incorrect callability check inside internal methods
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8class Test {
9    public function method() {
10        IntlChar::enumCharTypes([$this, 'privateMethod']);
11        IntlChar::enumCharTypes('self::privateMethod');
12    }
13
14    private function privateMethod($start, $end, $name) {
15    }
16}
17
18(new Test)->method();
19
20?>
21===DONE===
22--EXPECTF--
23Deprecated: Use of "self" in callables is deprecated in %s on line %d
24===DONE===
25