Answer the question
In order to leave comments, you need to log in
How to explicitly specify the type of an array element in phpDoc?
Hello!
Please tell me how to solve this problem, there is a method:
public function create(Request $request, Application $app){
$data = json_decode($request->getContent(), true);
$app['user']->setData($data);
...
}
/**
*@var User $user
*/
$user = $app['user'];
$user->setData($data);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question