Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Seeder run() static problem #3

Closed
patie opened this issue Apr 6, 2013 · 2 comments
Closed

Seeder run() static problem #3

patie opened this issue Apr 6, 2013 · 2 comments

Comments

@patie
Copy link

patie commented Apr 6, 2013

What about this ?

http://postimg.org/image/lh0sso98l/

PHPStorm 6
Laravel 4 beta5

@barryvdh
Copy link
Owner

barryvdh commented Apr 6, 2013

Well, it doesn't really affect the seeding, but phpStorm thinks you are extending the fake Seeder class, instead of the original class.
I don't think I can do much about it, except removing that facade (but then the class cannot be found by phpStorm).

You can probably change your DatabaseSeeder/UserSeederClass to extend the real class (\Illuminate\Database\Seeder) instead of the facade

barryvdh added a commit that referenced this issue Apr 7, 2013
Just extend the Seeder class, because it isn't called static (Fixes
Issue #3)
@barryvdh
Copy link
Owner

barryvdh commented Apr 7, 2013

Okay, I added an option to only extend the class, and added the Seeder class to the config file to do this. Should fix this error.

@barryvdh barryvdh closed this as completed Apr 7, 2013
pataar added a commit to pataar/laravel-ide-helper that referenced this issue Oct 28, 2024
# This is the 1st commit message:

fix(pivot): only use unique classes in the pivot union (Fixes barryvdh#1606)

improve comment

composer fix-style

use a safer method

# This is the commit message #2:

unshift is better than rest

# This is the commit message barryvdh#3:

composer fix-style
# This is a combination of 3 commits.
# This is the 1st commit message:

fix(pivot): only use unique classes in the pivot union (Fixes barryvdh#1606)

improve comment

composer fix-style

use a safer method

# This is the commit message #2:

unshift is better than rest

# This is the commit message barryvdh#3:

composer fix-style
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants