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

Missing templates should raise exceptions. #8555

Merged
merged 1 commit into from
Mar 31, 2016
Merged

Missing templates should raise exceptions. #8555

merged 1 commit into from
Mar 31, 2016

Conversation

markstory
Copy link
Member

Missing templates are a signal that a developer has made a mistake. We should help them find this error and an exception is the simplest way to signal an error to the developer.

Targeting this to 3.next as it is a new error that I don't feel is appropriate at the bug-fix release level.

Refs #8554

Missing templates are a signal that a developer has made a mistake.
We should help them find this error and an exception is the simplest way
to signal an error to the developer.

Refs #8554
@markstory markstory added this to the 3.3.0 milestone Mar 28, 2016
}
list($template, $placeholders) = $this->_compiled[$name];
if ($template === null) {
return null;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was unreachable.

@markstory markstory merged commit 26591df into 3.next Mar 31, 2016
@markstory markstory deleted the issue-8554 branch March 31, 2016 02:19
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.

None yet

1 participant