Skip to content

Commit 6d0a8a3

Browse files
committed
Fix href not type-casted in __toString() closes #75
1 parent d122577 commit 6d0a8a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "oblik/kirby-link-field",
33
"description": "Kirby 3 field for all types of links.",
44
"license": "MIT",
5-
"version": "5.2.1",
5+
"version": "5.2.2",
66
"type": "kirby-plugin",
77
"keywords": [
88
"kirby",

src/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __call($name, $arguments = [])
3434

3535
public function __toString()
3636
{
37-
return $this->href();
37+
return (string)$this->href();
3838
}
3939

4040
public function title()

0 commit comments

Comments
 (0)