Comments (4)
Update issue
from codecomplice.
hey @xskif,
sorry but your mind is playing tricks on you. The following code is the regular expression that is matched against @Property. It hasn't changed from Komodos code:
_re_magic_property = re.compile(
r'^\s*@property(-(?P<type>read|write))?\s+((?P<citdl>[\w\\]+)\s+)?(?P<name>\$\w+)(?:\s+(?P<doc>.*?))?', re.M | re.U)
As you can see, the array syntax is not supported, only word-characters and backslash (namespaces) are considered!
So the following is working:
class Order {
public function orderMethod($value='')
{
return true;
}
}
/**
* @property Order $order
*/
class User {
public function getOrder() {
return $this->hasOne(Order::className(), ['id'=>'id']);
}
}
$user = new User();
$user->order->(shows "orderMethod")
This is actually a feature request!
from codecomplice.
Really? I was pretty sure that this feature already working on. Strange.
Ok, let it be a feature request.
from codecomplice.
Because of this "feature" didn't work, i have a bug with autocompletion.
$user->orders[0]->(there is some User class methods, instead of empty completion or Order class methods)
from codecomplice.
Related Issues (20)
- Does not work for $this->var, but works $var HOT 11
- Params not showing after using tab HOT 5
- ST3 build 3088 update HOT 4
- Enhancements in tooltip
- PHP Trait doesn't work HOT 1
- Does "codeintel" setting work? HOT 2
- changing keybindings
- How to add my custom CIX file for a given library ? HOT 2
- Worse-than-useless popup question HOT 1
- Change ctrl-click assignment HOT 1
- "Could not complete last request in time" error HOT 1
- `codeintel_enabled_languages` setting does not works
- Getting 'could not resolve first part of' Error
- codeintel_scan_exclude_dir does not seem to work HOT 1
- Sublime Dev Build 3111+ Not Working HOT 1
- Not select text inside a tag
- Is there support for auto-completion from a parent class? HOT 1
- Tooltip h1 cutting off full method name in PHP HOT 1
- Menu disabled HOT 1
- tree.py 55.line problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codecomplice.