===description===
reports deprecated method
===file===
<?php
class Foo {
    /** @deprecated use newMethod() instead */
    public function oldMethod(): void {}
}

function test(Foo $foo): void {
    $foo->oldMethod();
}
===expect===
DeprecatedMethodCall@8:4: Call to deprecated method Foo::oldMethod: use newMethod() instead
