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

Improve exception messages for topic-subscribers #441

Merged
merged 1 commit into from
May 10, 2018
Merged

Improve exception messages for topic-subscribers #441

merged 1 commit into from
May 10, 2018

Conversation

thePanz
Copy link
Contributor

@thePanz thePanz commented May 10, 2018

No description provided.

$topics = $processorClass::getSubscribedTopics();
if (!is_array($topics)) {
throw new \LogicException(sprintf(
'Topic subscriber configuration is invalid for "%s::getSubscribedTopics()"',
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a sentence The method should return array got [var type]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@thePanz thePanz changed the title Improve exeption messages for topic-subscribers Improve exception messages for topic-subscribers May 10, 2018
@thePanz
Copy link
Contributor Author

thePanz commented May 10, 2018

@makasim the Travis failures are not related (IMHO) to my changes, do you have any idea?

@makasim makasim merged commit bfc1cef into php-enqueue:master May 10, 2018
@makasim
Copy link
Member

makasim commented May 10, 2018

@thePanz thanks for the contribution, I'll take care of the failed test.

@thePanz thePanz deleted the patch-1 branch May 10, 2018 14:41
ASKozienko pushed a commit that referenced this pull request Nov 2, 2018
Improve exception messages for topic-subscribers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants