File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ matrix:
3333
3434before_install :
3535 - if [[ -z $TEST_VERSION && -f "/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini" ]]; then phpenv config-rm xdebug.ini; fi
36- - composer global require hirak/prestissimo
3736 - composer self-update --stable --no-progress
3837
3938install :
Original file line number Diff line number Diff line change 22[ ![ Latest Version] ( https://img.shields.io/packagist/v/phpgears/value-object.svg?style=flat-square )] ( https://packagist.org/packages/phpgears/value-object )
33[ ![ License] ( https://img.shields.io/github/license/phpgears/value-object.svg?style=flat-square )] ( https://github.com/phpgears/value-object/blob/master/LICENSE )
44
5- [ ![ Build Status] ( https://img.shields.io/travis/phpgears/value-object.svg?style=flat-square )] ( https://travis-ci.org /phpgears/value-object )
5+ [ ![ Build Status] ( https://img.shields.io/travis/com/ phpgears/value-object.svg?style=flat-square )] ( https://travis-ci.com/github /phpgears/value-object )
66[ ![ Style Check] ( https://styleci.io/repos/149037500/shield )] ( https://styleci.io/repos/149037500 )
77[ ![ Code Quality] ( https://img.shields.io/scrutinizer/g/phpgears/value-object.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/phpgears/value-object )
88[ ![ Code Coverage] ( https://img.shields.io/coveralls/phpgears/value-object.svg?style=flat-square )] ( https://coveralls.io/github/phpgears/value-object )
@@ -93,14 +93,20 @@ final class Money extends AbstractValueObject implements \Serializable
9393
9494 final public function __serialize(): array
9595 {
96- return ['value' => $this->value];
96+ return [
97+ 'value' => $this->value,
98+ 'precision' => $this->precision,
99+ 'currency' => $this->currency,
100+ ];
97101 }
98102
99103 final public function __unserialize(array $data): void
100104 {
101105 $this->assertImmutable();
102106
103107 $this->value = $data['value'];
108+ $this->precision = $data['precision'];
109+ $this->currency = $data['currency'];
104110 }
105111
106112 final public function serialize(): string
Original file line number Diff line number Diff line change 2828 "require-dev" : {
2929 "brainmaestro/composer-git-hooks" : " ^2.8" ,
3030 "friendsofphp/php-cs-fixer" : " ^2.16" ,
31- "infection/infection" : " ^0.13|^0.15" ,
31+ "infection/infection" : " ^0.13|^0.15|^0.18|^0.19 " ,
3232 "overtrue/phplint" : " ^1.2" ,
3333 "phpmd/phpmd" : " ^2.8" ,
3434 "phpstan/extension-installer" : " ^1.0.3" ,
You can’t perform that action at this time.
0 commit comments