Skip to content

Commit ee522d4

Browse files
staabmclxmstaab
andauthored
better error message on setup problems (#427)
Co-authored-by: Markus Staab <m.staab@complex-it.de>
1 parent b39afd7 commit ee522d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QueryReflection/QueryReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private function replaceParameters(string $queryString, array $parameters): stri
352352
private static function reflector(): QueryReflector
353353
{
354354
if (null === self::$reflector) {
355-
throw new DbaException('Reflector not initialized, call '.__CLASS__.'::setupReflector() first');
355+
throw new DbaException('Reflector not initialized. Make sure a phpstan bootstrap file is configured which calls '.__CLASS__.'::setupReflector().');
356356
}
357357

358358
return self::$reflector;
@@ -361,7 +361,7 @@ private static function reflector(): QueryReflector
361361
public static function getRuntimeConfiguration(): RuntimeConfiguration
362362
{
363363
if (null === self::$runtimeConfiguration) {
364-
throw new DbaException('Runtime configuration not initialized, call '.__CLASS__.'::setupReflector() first');
364+
throw new DbaException('Runtime configuration not initialized. Make sure a phpstan bootstrap file is configured which calls '.__CLASS__.'::setupReflector().');
365365
}
366366

367367
return self::$runtimeConfiguration;

0 commit comments

Comments
 (0)