xref: /PHP-8.1/ext/reflection/tests/bug26695.phpt (revision 93640db4)
1--TEST--
2Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints)
3--FILE--
4<?php
5
6class Foo {
7}
8
9class Bar {
10  function demo(foo $f) {
11  }
12}
13
14$class = new ReflectionClass('bar');
15$methods = $class->getMethods();
16$params = $methods[0]->getParameters();
17
18$class = $params[0]->getClass();
19
20var_dump($class->getName());
21?>
22--EXPECTF--
23Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d
24string(3) "Foo"
25