Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

fixed Exception\InvalidArgumentException messages in Zend\Log #3968

Closed
wants to merge 1 commit into from
Closed

fixed Exception\InvalidArgumentException messages in Zend\Log #3968

wants to merge 1 commit into from

Conversation

aporat
Copy link
Contributor

@aporat aporat commented Mar 5, 2013

No description provided.

@@ -237,7 +237,8 @@ public function addWriter($writer, $priority = 1, array $options = null)
$writer = $this->writerPlugin($writer, $options);
} elseif (!$writer instanceof Writer\WriterInterface) {
throw new Exception\InvalidArgumentException(sprintf(
'Writer must implement Zend\Log\Writer; received "%s"',
'Writer must implement %s\Writer\WriterInterface; received "%s"',
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious. Why? Agree with WriterInterface, but by use "NAMESPACE" instead of "Zend\Log" as 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.

I saw that was the common usage of Exception\InvalidArgumentException in other classes

@prolic
Copy link
Contributor

prolic commented Mar 7, 2013

Great, good to merge for me.

@ghost ghost assigned weierophinney Mar 8, 2013
weierophinney added a commit that referenced this pull request Mar 12, 2013
fixed Exception\InvalidArgumentException messages in Zend\Log
weierophinney added a commit that referenced this pull request Mar 12, 2013
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
…xceptions

fixed Exception\InvalidArgumentException messages in Zend\Log
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants