<?php
/** @template T */
class A {
/**
* @param int $id
* @param ?int $lockMode
* @param ?int $lockVersion
* @return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null) {}
}