We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d877154 commit c3911f3Copy full SHA for c3911f3
Model/TemplatePool.php
@@ -52,7 +52,9 @@ public function getAll(string $templateType):array
52
*/
53
public function getTemplate(string $templateType, string $name):string
54
{
55
- if (isset($this->templates[$templateType]) && is_countable($this->templates[$templateType])) {
+ if (isset($this->templates[$templateType]) &&
56
+ (is_array($this->templates[$templateType]) || $this->templates[$templateType] instanceof Countable)
57
+ ) {
58
foreach ($this->templates[$templateType] as $item) {
59
if (isset($item['value']) && $item['value'] == $name) {
60
return $item['template'];
0 commit comments