Skip to content

type hint faker generator #3449

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

Merged
merged 2 commits into from
Jul 8, 2015
Merged

type hint faker generator #3449

merged 2 commits into from
Jul 8, 2015

Conversation

browner12
Copy link
Contributor

allow IDE to help with autocompletion

allow IDE to help with autocompletion
@@ -11,7 +11,7 @@
|
*/

$factory->define(App\User::class, function ($faker) {
$factory->define(App\User::class, function (\Faker\Generator $faker) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No leading slash please.

@browner12
Copy link
Contributor Author

sure thing.

is that a PSR styling thing? or some other reason?

requested by project maintainer
@GrahamCampbell
Copy link
Member

The leading slash is actually wrong - that's why it needs removing. PHP just supports it anyway because people commonly use it by mistake.

@GrahamCampbell
Copy link
Member

It's only use is to tell php to look to the global namespace while inside a namespace. All fully qualified class names are defined without a leading slash. :)

@browner12
Copy link
Contributor Author

good to know!

should be updated

@GrahamCampbell
Copy link
Member

:)

@GrahamCampbell
Copy link
Member

👍 from me

taylorotwell added a commit that referenced this pull request Jul 8, 2015
@taylorotwell taylorotwell merged commit e3f18ea into laravel:master Jul 8, 2015
@browner12 browner12 deleted the patch-1 branch July 8, 2015 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants