Skip to content

Commit 1907079

Browse files
authored
Fix attribute serialization (Webklex#179)
1 parent 7574029 commit 1907079

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Attribute.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,13 @@ public function toString(){
6161
return $this->__toString();
6262
}
6363

64-
/**
65-
* Return the serialized attribute
66-
*
67-
* @return array
68-
*/
69-
public function __serialize(){
70-
return $this->values;
71-
}
72-
7364
/**
7465
* Convert instance to array
7566
*
7667
* @return array
7768
*/
7869
public function toArray(){
79-
return $this->__serialize();
70+
return $this->values;
8071
}
8172

8273
/**

0 commit comments

Comments
 (0)