Skip to content

Commit c12f7b8

Browse files
Fixed getClassesMapping() exception message
1 parent f65c653 commit c12f7b8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ See [compatibility docs](docs/compatibility.md) for details about backward compa
66

77
## CHANGE LOG ##
88

9+
* dev
10+
* Fixed incorrect exception message thrown in case of incomplete `classes` config mapping (@dragonfire1119)
11+
912
* v3.0.1 (2017-02-23)
1013
* Updated `composer.json` to list `laravel/framework` among requirements
1114

src/ResponseBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected static function getClassesMapping()
5959
foreach ($classes as $class_name => $class_config) {
6060
foreach ($mandatory_keys as $key_name) {
6161
if (!array_key_exists($key_name, $class_config)) {
62-
throw new \RuntimeException('CONFIG: Missing "{$key_name}" for "{$class_name}" mapping');
62+
throw new \RuntimeException("CONFIG: Missing '{$key_name}' for '{$class_name}' mapping");
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)