Skip to content

Commit 1161adc

Browse files
refactor: rename templateData method to setTemplateData
1 parent f159178 commit 1161adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Html/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function addScript(string $view): static
272272
return $this;
273273
}
274274

275-
public function templateData(array|\Closure $data = []): static
275+
public function setTemplateData(array|\Closure $data = []): static
276276
{
277277
if ($data instanceof \Closure) {
278278
$data = $data($this) ?? [];

0 commit comments

Comments
 (0)