You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 4.x branch.
Discussion
----------
Move to PHPStan level 5
Not a big fan adding more phpdocs, but I don't have a better idea for now (except stop use `getNode()` and add proper getters).
Commits
-------
b3cbced Move to PHPStan level 5
Copy file name to clipboardExpand all lines: src/Environment.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -495,7 +495,7 @@ public function resolveTemplate(string|TemplateWrapper|array $names): TemplateWr
495
495
return$this->load($name);
496
496
}
497
497
498
-
thrownewLoaderError(\sprintf('Unable to find one of the following templates: "%s".', implode('", "', $names)));
498
+
thrownewLoaderError(\sprintf('Unable to find one of the following templates: "%s".', implode('", "', array_map(fn ($name) => $nameinstanceof TemplateWrapper ? $name->getTemplateName() : $name, $names))));
0 commit comments