Skip to content

Commit 0e02725

Browse files
committed
Update README.md
1 parent d944893 commit 0e02725

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ It allows altering the copied version's properties with optional parameters.
9696
```php
9797
$version = Version::parse("1.0.0-alpha.2+build.1");
9898

99-
echo (string)$version->copy(3) // 3.0.0
100-
echo (string)$version->copy(null, 4) // 1.4.0
101-
echo (string)$version->copy(null, null, 5) // 1.0.5
99+
echo (string)$version->copy() // 1.0.0-alpha.2+build.1
100+
echo (string)$version->copy(3) // 3.0.0-alpha.2+build.1
101+
echo (string)$version->copy(null, 4) // 1.4.0-alpha.2+build.1
102+
echo (string)$version->copy(null, null, 5) // 1.0.5-alpha.2+build.1
102103
echo (string)$version->copy(null, null, null, "alpha.4") // 1.0.0-alpha.4+build.1
103104
echo (string)$version->copy(null, null, null, null, "build.3") // 1.0.0-alpha.2+build.3
104105
echo (string)$version->copy(3, 4, 5) // 3.4.5-alpha.2+build.1

0 commit comments

Comments
 (0)