Remi Collet
e20165e9dd
use expectError instead of expectException ( #351 )
2020-10-29 10:07:00 -05:00
Ben Ramsey
65f39c93f4
Rename codecov yaml file and add to gitattributes
2020-10-28 22:51:20 -05:00
Ben Ramsey
b5dadc7eb4
Remove Travis CI config and update readme
2020-10-28 22:43:57 -05:00
Ben Ramsey
954cb23d5e
Allow builds to fail on PHP 8.0
2020-10-28 22:22:54 -05:00
Ben Ramsey
4d7b904321
Do not use pecl-uuid extension in workflow
2020-10-28 21:45:54 -05:00
Ben Ramsey
9409ea98ba
Revert "Commit lockfile for Composer"
...
This reverts commit e3771b067a .
2020-10-28 21:45:07 -05:00
Ben Ramsey
b3f050110e
Add CI workflow for GitHub Actions
2020-10-28 21:39:44 -05:00
Ben Ramsey
e3771b067a
Commit lockfile for Composer
2020-10-28 21:22:35 -05:00
Ben Ramsey
eb355012a5
Add security policy
2020-10-28 21:21:21 -05:00
Ben Ramsey
0a25f73ae0
Fix static analysis issues
2020-10-28 21:19:26 -05:00
Ben Ramsey
e4562b089b
Merge pull request #335 from Bilge/redundant-interfaces
...
Removed redundant interface speficiation
2020-08-23 15:04:10 -05:00
Bilge
49b772a5e2
Removed redundant interface inheritance.
2020-08-23 19:36:53 +01:00
Ben Ramsey
d103e07a2c
Merge pull request #333 from Bilge/assert-same
...
Use assertSame instead of assertEquals
2020-08-23 12:45:58 -05:00
Bilge
7947413a76
Use assertSame instead of assertEquals.
2020-08-23 13:53:19 +01: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