Intellisense not working on objects declared in parameters
7 posts
• Page 1 of 1
Intellisense not working on objects declared in parameters
Hey guys,
Let's say I have a test.php page as follows:
<?php
try
{
$test = new Exception();
$test->getMessage();
}
catch (Exception $exception) {
$exception->getMessage();
}
?>
If I put my cursor after $test-> and press Ctrl+Space I get intellisense for the $test object, as expected.
Yet if I put my cursor after the $exception-> in the catch, and press Ctrl+Space I don't get intellisense for the $exception object.
The same thing happens if I do the following:
function (Exception $ex) {
return $ex->getMessage();
}
I get no intellisense for the $ex object.
Why is this?
Regards,
Scott
Let's say I have a test.php page as follows:
<?php
try
{
$test = new Exception();
$test->getMessage();
}
catch (Exception $exception) {
$exception->getMessage();
}
?>
If I put my cursor after $test-> and press Ctrl+Space I get intellisense for the $test object, as expected.
Yet if I put my cursor after the $exception-> in the catch, and press Ctrl+Space I don't get intellisense for the $exception object.
The same thing happens if I do the following:
function (Exception $ex) {
return $ex->getMessage();
}
I get no intellisense for the $ex object.
Why is this?
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Intellisense not working on objects declared in paramete
Hi,
This is known missing feature - parameters of catch() block are not in IntelliSense yet. Will be added asap.
Thanks! If you'll find anything else like this, please feel free to let us know.
This is known missing feature - parameters of catch() block are not in IntelliSense yet. Will be added asap.
Thanks! If you'll find anything else like this, please feel free to let us know.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Intellisense not working on objects declared in paramete
Jakub,
Ok cool mate. You get that the same thing happens with function parameters as well though yeah?
Regards,
Scott
Ok cool mate. You get that the same thing happens with function parameters as well though yeah?
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Intellisense not working on objects declared in paramete
Function parameters are supported. If it does not work for you could you please provide a test sample?
Thank you,
Thank you,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Intellisense not working on objects declared in paramete
Jakub,
My bad mate, it appears you are right. Maybe there was a typeo in my origional code. I deleted the test page I was working on, but just tried it again and intellisense works fine with functions
Thanks mate,
Scott
My bad mate, it appears you are right. Maybe there was a typeo in my origional code. I deleted the test page I was working on, but just tried it again and intellisense works fine with functions
Thanks mate,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Intellisense not working on objects declared in paramete
Great! I'm glad it works.
Thanks,
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Intellisense not working on objects declared in paramete
Parameters from catch() blocks are handled in latest update.
See http://www.devsense.com/products/php-to ... /changelog for more information or follow us at http://www.facebook.com/pages/PHP-Tools ... 0130137834
See http://www.devsense.com/products/php-to ... /changelog for more information or follow us at http://www.facebook.com/pages/PHP-Tools ... 0130137834
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests