Skip to content

Conversation

@browner12
Copy link
Contributor

  • add void return type
  • remove unnecessary docblocks

syncs with a docs change

- add `void` return type - remove unnecessary docblocks syncs with a [docs change](laravel-zero/docs@c402dd2)
Copy link
Member

@owenvoke owenvoke left a comment

Choose a reason for hiding this comment

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

I was thinking of merging this, however I remembered the issues which people brought up when Laravel added return types to these stubs.

Related, I do think we should update the stubs within Laravel Zero to use the {{ class }} format that Laravel uses (rather than DummyClass, etc.)

 remove return type Co-authored-by: Owen Voke <development@voke.dev>
@browner12
Copy link
Contributor Author

should we also update the "DummyNameSpace"?

@owenvoke
Copy link
Member

Yes, and the signature. 👍🏻 Basically like the core console.stub, but including the additional methods we have.

- use "namespace" and "command" variables rather than "Dummy" string replacement - update docblock descriptions to match `laravel/framework` changes
@browner12
Copy link
Contributor Author

okay, everything should be synced up now.

I tried this stub on a local Laravel Zero app I have and the file generated correctly.

Should be good to review.

@owenvoke owenvoke merged commit aac9c1b into laravel-zero:master Jan 22, 2024
@browner12 browner12 deleted the AB-stub-return-types branch January 22, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants