-
Notifications
You must be signed in to change notification settings - Fork 49
Cleaned up and edited with latest L4 revisions #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jon Phipps <jphipps@madcreek.com>
This works well. Should be merged |
+1 working perfectly in PhpED too |
This also fixes issue #2 |
Not for me. Look at: https://dl.dropbox.com/u/871494/phps-laravel.jpg |
@kwolniak Your first issue with "Non-static method 'get' should not be called statically" warning is a side-effect of re-declaring the methods statically and I don't think that can be avoided with the current version (or 6) of PHPstorm. I ended up changing the severity of the checks for those in PHPstorm to a 'weak warning', although you can turn the check off entirely:
Last, but hardly least Laravel 4 is a very moving target with classes coming, going, and being moved around. Much has changed in the last month. Running the codeintel script weekly seems to result in quite a few changes. There's also the issue of being able to properly reflect the methods returned by a serviceprovider that provides static version of methods from several classes, like Validator does. I think that some refactoring of the codeintel script to support merging several classes into a single service provider would be useful: laravelbook/laravel-codeintel-generator#3 Of the many L4 ide helpers, this is the only one that I know of that's being built by a code parser, and that means that there's at least a hope of keeping up with the changes. Until these issues are either resolved by the IDE makers or L4 stabilizes enough to make building this by hand worthwhile, this represents the best solution of found. |
You could also take a look at my helper generator: https://github.com/barryvdh/laravel-ide-helper |
Barry. Really nice, best fix so far for me! |
Latest Laravel 4 as of 02/20/2013, edited to include the defaults missed by t 8000 he codeintel parser, along with some other minor flaws in the output. Based strictly on the json config file supplied with the parser.