Skip to content

Commit cb29bf9

Browse files
committed
Add DTO 3.0 support
1 parent 00fb2b6 commit cb29bf9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Dom/Document.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ public function bindTag(string $tag, string $key, bool $prepend = false): Elemen
9797

9898
/**
9999
* Create (append) element
100-
* @param string $element HTML tag (without brackets)
101-
* @param string $value add value to tag
100+
*
101+
* @param string $element HTML tag (without brackets)
102+
* @param null $value add value to tag
103+
* @param string|null $bind
102104
* @return ElementInterface
103105
*/
104106
public function create($element, $value = null, ?string $bind = null): ElementInterface
@@ -172,6 +174,7 @@ public function getTag(string $key): ?string
172174
public function execute(?callable $call = null): string
173175
{
174176
$this->html = "";
177+
175178
if (is_null($this->elements)) {
176179
if (method_exists($this, "withElement")) {
177180
$inst = $this->withElement();
@@ -181,6 +184,7 @@ public function execute(?callable $call = null): string
181184
if (is_array($this->elements)) {
182185
$this->build($this->elements, $call);
183186
}
187+
184188
return $this->html;
185189
}
186190

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"php": ">=8.0",
21-
"maplephp/dto": "^2.0",
21+
"maplephp/dto": "^3.0",
2222
"maplephp/container": "^1.0"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)