Skip to content
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

Fix return type in interface #542

Merged

Conversation

Landerstraeten
Copy link
Contributor

No description provided.

* @return null|string
*/
public function getMessage();
public function getMessage(): string;
Copy link
Member

Choose a reason for hiding this comment

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

The docblock says null or string, shouldn't it be : ?string ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's now string in the implementing TaskResult class

Copy link
Member

Choose a reason for hiding this comment

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

Ok, if the users aren't using this interface, this should be fine.

@Landerstraeten Landerstraeten merged commit 7c408e3 into phpro:grumpy-seventies Sep 22, 2018
@veewee veewee added this to the grumpy-seventies milestone Oct 25, 2018
@Landerstraeten Landerstraeten deleted the fix-taskresultinterface branch October 28, 2018 12:22
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.

3 participants