File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Framework \MockObject ;
11
11
12
- use SebastianBergmann \Template \Exception as TemplateException ;
13
12
use SebastianBergmann \Template \Template ;
14
13
15
14
/**
@@ -23,22 +22,14 @@ trait TemplateLoader
23
22
private static array $ templates = [];
24
23
25
24
/**
26
- * @throws RuntimeException
25
+ * @psalm-suppress MissingThrowsDocblock
27
26
*/
28
27
private function loadTemplate (string $ template ): Template
29
28
{
30
- $ filename = __DIR__ . DIRECTORY_SEPARATOR . ' Generator ' . DIRECTORY_SEPARATOR . $ template ;
29
+ $ filename = __DIR__ . ' / Generator/ ' . $ template ;
31
30
32
31
if (!isset (self ::$ templates [$ filename ])) {
33
- try {
34
- self ::$ templates [$ filename ] = new Template ($ filename );
35
- } catch (TemplateException $ e ) {
36
- throw new RuntimeException (
37
- $ e ->getMessage (),
38
- $ e ->getCode (),
39
- $ e
40
- );
41
- }
32
+ self ::$ templates [$ filename ] = new Template ($ filename );
42
33
}
43
34
44
35
return self ::$ templates [$ filename ];
You can’t perform that action at this time.
0 commit comments