Skip to content

Commit 4e3fbe5

Browse files
committed
update travis
1 parent 7973d8c commit 4e3fbe5

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ matrix:
3333

3434
before_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

3938
install:

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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",

0 commit comments

Comments
 (0)