Answer the question
In order to leave comments, you need to log in
Why is phpStorm highlighting Exception?
There is a validation function that processes the file. PHPStorm why highlights exceptions
for clarity, I made a screen in which you can see how the storm reacts and what error it writes
. Although I process these exceptions when calling, please tell me what he doesn’t like?
try{
$this->validate($file_csv);
}catch (\Exception $e){
echo $e->getMessage();
die;
}
Answer the question
In order to leave comments, you need to log in
Add a comment (annotation) to the validate method.
To do this, place the cursor on the line before enter and press Enter.
Should workprivate function validate
/**
/**
* @param $file
* @throws Exception
*
**/
private function validate ($file) {
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question