Commit cc73b1e
committed
minor #36058 [Uid] make
This PR was merged into the 5.1-dev branch.
Discussion
----------
[Uid] make `Uuid::equals` method accept any types of argument for more flexibility
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | ~
| License | MIT
| Doc PR | ~
I suggest to weaken the `Uuid:equals` method argument type to accept any types of value to compare against. This makes one able to compare the `Uuid` instance with any values.
Commits
-------
46721c1 [Uid] make `Uuid::equals()` accept any types of argument for more flexibilityUuid::equals method accept any types of argument for more flexibility (hhamon)2 files changed
+25-2Lines changed: 25 additions & 2 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/Symfony/Component/Uid
- Tests
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/Symfony/Component/Uid/Tests/UuidTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Uid/Tests/UuidTest.php+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
94 | 94 | |
95 | 95 | |
96 | 96 | |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
97 | 113 | |
98 | 114 | |
99 | 115 | |
|
Collapse file
src/Symfony/Component/Uid/Uuid.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Uid/Uuid.php+9-2Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
95 | 98 | |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
96 | 103 | |
97 | 104 | |
98 | 105 | |
|
0 commit comments