Ben Ramsey
2df6bbdf01
Switch back to ^8.0 in the PHP version requirement for 4.1.x
4.1.3
2021-09-25 18:00:53 -05:00
Ben Ramsey
2f59ce64b9
Merge branch '4.0.x' into 4.1.x
2021-09-25 17:59:52 -05:00
Ben Ramsey
cf8c74db9d
Switch back to ^8.0 in the PHP version requirement for 4.0.x
4.0.3
2021-09-25 17:59:24 -05:00
Ben Ramsey
97d153506b
Lock 4.1.x to ~8.0.0 to indicate it does not support PHP 8.1
4.1.2
2021-09-24 13:48:21 -05:00
Ben Ramsey
831ad1b5ff
Merge branch '4.0.x' into 4.1.x
2021-09-24 13:46:15 -05:00
Ben Ramsey
833c5c9529
Lock 4.0.x to ~8.0.0 to indicate it does not support PHP 8.1
4.0.2
2021-09-24 13:44:03 -05:00
Ben Ramsey
cd4032040a
Update CHANGELOG for version 4.1.1
4.1.1
2020-08-18 12:17:46 -05:00
Ben Ramsey
2bbfa75a47
Merge pull request #332 from simPod/brick-math-9
...
Add support for brick/math ^0.9
2020-08-18 12:13:51 -05:00
Simon Podlipsky
17638f627c
Add support for brick/math ^0.9
2020-08-18 14:40:28 +02:00
Ben Ramsey
69b3eb8824
Fix links in CHANGELOG
2020-07-28 11:52:54 -05:00
Ben Ramsey
988dbefc78
Update CHANGELOG for 4.1.0 release
4.1.0
2020-07-28 11:51:01 -05:00
Ben Ramsey
9ebb0eb9ed
Merge pull request #324 from Ocramius/feature/happy-path-performance-improvements
...
Improved performance of `Uuid::fromString()`, `Uuid::fromBytes()`, `UuidInterface#toString()`, `UuidInterface#getBytes()`
2020-07-10 15:25:54 -05:00
Marco Pivetta
0c2b4074d2
Minor performance optimization: LazyUuidFromString#unwrap() now uses an internal instance cache for unwrapped instances
2020-07-09 14:39:36 +02:00
Marco Pivetta
fa14d04231
Added benchmark about extracting UUID field details
2020-07-09 14:23:49 +02:00
Marco Pivetta
6339cd9fbc
Added UUID serialization benchmark
2020-07-09 14:15:05 +02:00
Marco Pivetta
a621ca9e81
Uuid::uuid3() uses impure Uuid::getFactory() API - suppressing it from purity static analysis checks
2020-07-09 14:04:20 +02:00
Marco Pivetta
b805572537
Ensure that Uuid::uuidX() generators produce instances equivalent to Uuid::fromString() and Uuid::fromBytes()
...
With this change, `Uuid::uuid1()`, `Uuid::uuid2()` and so forth now produce a `LazyUuidFromString` instance, which
is both more memory efficient and comparable to `Uuid::fromString()` instances in other tools, such as within
PHPUnit's `Assertion::assertEqual()`, which would reject any two objects not matching each other's types.
Before this patch, `Assertion::assertEquals(Uuid::uuid5(...), Uuid::fromString(...))` would always fail due to
different subtypes produced by the two factory methods.
2020-07-09 13:57:30 +02:00
Marco Pivetta
2421b79841
Added benchmark for UUID generation logic
2020-07-09 13:57:30 +02:00
Marco Pivetta
910e3e459c
Adjusted comment wording: s/string/strict (typo)
...
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de >
2020-07-09 13:57:30 +02:00
Marco Pivetta
1f0cd71d93
Applied fixes and suppressions (sadly) to match psalm/phpstan code quality guidelines
...
We have a lot of deprecated API in here which shouldn't exist in first place, but that
will luckily disappear with v5.0.0 :-)
2020-07-09 13:57:30 +02:00
Marco Pivetta
1ce3f55673
Applied automated CS fixes according to project CS settings
2020-07-09 13:57:30 +02:00
Marco Pivetta
c01872212e
Add phpbench to CI run to ensure that we don't accidentally break benchmarks
...
This is not indicative of performance, but just guarantees that the benchmarks
still run, and that we didn't break them during an upgrade or code change.
2020-07-09 13:57:30 +02:00
Marco Pivetta
0f68910bf2
Optimized Uuid::fromBytes() de-serialization to use LazyUuidFromString where possible
2020-07-09 13:57:30 +02:00
Marco Pivetta
569e93ac4e
Re-implemented Uuid::fromString() so it produces a LazyUuidFromString when possible
...
This should speed up `Uuid::fromString()` massively, leading to much shallower execution
paths when `toString()` and similar simplistic API is required.
2020-07-09 13:57:30 +02:00
Marco Pivetta
8d42044a99
Minimal benchmarks around Uuid::fromString(), Uuid::fromBytes(), Uuid#toString(), Uuid#getBytes()
...
This is mostly to store an initial state, before we go on and start manipulating the UUID library internals.
2020-07-09 13:56:04 +02:00
Ben Ramsey
22ee596348
Make serialize(UuidInterface) more compact
...
Resolves #318
2020-07-08 15:27:19 -05:00
Ben Ramsey
a741fc66ac
Merge pull request #323 from ramsey/dependabot/composer/dealerdirect/phpcodesniffer-composer-installer-tw-0.6.2or-tw-0.7.0
...
Update dealerdirect/phpcodesniffer-composer-installer requirement from ^0.6.2 to ^0.6.2 || ^0.7.0
2020-06-25 19:03:06 -05:00
dependabot-preview[bot]
fcbe5731ce
Update dealerdirect/phpcodesniffer-composer-installer requirement || ^0.7.0
...
Updates the requirements on dealerdirect/phpcodesniffer-composer-installer to permit the latest version.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-06-25 17:59:03 +00:00
Ben Ramsey
f656e061da
Merge pull request #315 from mitch292/issue/313/remove-phpdoc-parser
...
Remove phpstan/phpdoc-parser from dev dependencies
2020-05-10 16:42:12 -05:00
Andrew Mitchell
1944a1536b
Remove phpstan/phpdoc-parser from dev dependencies
2020-05-09 18:33:33 -04:00
Ben Ramsey
4afe899c34
Merge pull request #312 from ramsey/dependabot/composer/phpstan/phpdoc-parser-0.4.4
...
Update phpstan/phpdoc-parser requirement from 0.4.3 to 0.4.4
2020-04-25 13:47:56 -05:00
dependabot-preview[bot]
d513d4c6a0
Update phpstan/phpdoc-parser requirement from 0.4.3 to 0.4.4
...
Updates the requirements on [phpstan/phpdoc-parser](https://github.com/phpstan/phpdoc-parser ) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpdoc-parser/releases )
- [Commits](https://github.com/phpstan/phpdoc-parser/compare/0.4.3...0.4.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-20 16:09:55 +00:00
Ben Ramsey
b3c3920875
Fix space before break style error
2020-03-31 16:52:23 -05:00
Ben Ramsey
ba8fff1d3a
Fix collection deserialization errors
4.0.1
2020-03-29 15:13:32 -05:00
Ben Ramsey
15f777bb36
Replace abandoned package with recommended package
2020-03-29 12:17:27 -05:00
Ben Ramsey
7d31abd267
Merge pull request #300 from Ocramius/feature/uuid5-is-pure
...
Marking `Uuid::uuid5()` as pure: same input leads to same output, and no I/O under normal operational constraints
2020-03-27 13:12:21 -05:00
Marco Pivetta
15a5d4f5e1
Propagating @psalm-pure to factories and builders used internally to purely assemble a UuidInterface
...
Ref: https://github.com/ramsey/uuid/pull/300#issuecomment-601329450
2020-03-23 11:25:22 +01:00
Marco Pivetta
c8e8b7b693
Marking Uuid::uuid3() as pure as well: it produces same values for same input
2020-03-23 10:18:21 +01:00
Marco Pivetta
e830b23d77
Marking Uuid::uuid5() as pure: same input leads to same output, and no I/O under normal operational constraints
2020-03-23 10:18:21 +01:00
Ben Ramsey
2c9644b1d0
Release 4.0.0
4.0.0
2020-03-21 21:34:13 -05:00
Ben Ramsey
19a3ccb39c
Prepare for 4.0.0 release
2020-03-17 12:22:37 -05:00
Ben Ramsey
5808507468
Add a REPL script for testing
2020-03-17 12:00:22 -05:00
Ben Ramsey
fcfcd3fb60
Fix failing tests on Windows
...
escapeshellargs() uses different quotation mark characters between Linux
and Windows, so tests were failing on Windows. This change uses a
regular expression instead.
2020-03-17 11:43:45 -05:00
Ben Ramsey
744c05798a
[ci skip] Add Uuid method return types that have changed (slightly)
2020-03-16 11:36:36 -05:00
Ben Ramsey
706bac009f
Fix PHPStan errors
2020-03-16 10:44:20 -05:00
Ben Ramsey
fd5669daef
Attempt to run the full build on PHP 8
2020-03-16 10:22:32 -05:00
Ben Ramsey
fc9d5e39e2
Merge pull request #299 from andysnell/proofread-v4-docs
...
Fix Minor Typos in Docs
2020-03-15 21:21:30 -05:00
Andy Snell
7b068c6bea
Fix Minor Typos in Docs
2020-03-15 20:49:09 -05:00
Ben Ramsey
7e83bf502d
[ci skip] Remove ko-fi link from FUNDING.yml
2020-03-15 12:25:17 -05:00
Ben Ramsey
ebce23f2b0
Merge pull request #297 from jpjoao/docs
...
Fix small issues with docs
2020-03-15 12:18:48 -05:00