Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 692db5d

Browse filesBrowse files
fabpottidal
authored andcommitted
[DependencyInjection] changed exception class in __call()
1 parent c7fd3c2 commit 692db5d
Copy full SHA for 692db5d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Components/DependencyInjection/Container.php

Copy file name to clipboardExpand all lines: src/Symfony/Components/DependencyInjection/Container.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public function __call($method, $arguments)
339339
{
340340
if (!preg_match('/^get(.+)Service$/', $method, $match))
341341
{
342-
throw new \RuntimeException(sprintf('Call to undefined method %s::%s.', get_class($this), $method));
342+
throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s.', get_class($this), $method));
343343
}
344344

345345
return $this->getService(self::underscore($match[1]));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.