Closed Victor-Truhanovich closed 3 years ago
Can you please add a test case that would fail without this change?
/**
* @Rest\Route("accounts")
*/
class AccountController extends AbstractFOSRestController implements ApiControllerInterface
{
/**
* @Rest\Get("/{id}", requirements={"id"="\d+"})
*
* @param Account|EntityInterface $account
*
* @return View
*/
public function read(Account|EntityInterface $account): View
{
return $this->accountResponseManager->create($account);
}
}
Can you please add a test case that would fail without this change?
Sorry, I added tests for my code, but I never got an answer from you
Thank you @Viktor-Truhanovich.
Attempted to call an undefined method named "isBuiltin" of class "ReflectionUnionType".