Skip to content

Commit de1ec6d

Browse files
committed
Fix exception message
1 parent b13d6a1 commit de1ec6d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ vendor/
3838

3939
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
4040
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
41-
# composer.lock
41+
# composer.lock
42+

src/StaticEntityManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private function initDataSet()
156156
$dataSet = call_user_func(array($this->class, 'getDataSet'));
157157

158158
if (!is_array($dataSet) || count($dataSet) !== count(array_filter($dataSet, 'is_array'))) {
159-
throw new \Exception('DataSet for class %s seems invalid');
159+
throw new \Exception(sprintf('DataSet for class %s seems invalid', $this->class));
160160
}
161161

162162
$this->ids = array_keys($dataSet);

0 commit comments

Comments
 (0)