Skip to content

Commit be4a1f5

Browse files
author
Martin Kluska
committed
Changed the attribute setter to use magic method (to support setDummyAttribute)
1 parent 5d077c6 commit be4a1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stubs/setFunction.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
* @return $this
55
*/
66
public function {{ function }}($value) {
7-
$this->attributes["{{ attribute }}"] = $value;
7+
$this->{{ attribute }} = $value;
88
return $this;
99
}

0 commit comments

Comments
 (0)