Commit Graph

1162 Commits

Author SHA1 Message Date
Ben Ramsey 13edf70fc9 feat: introduce Variant enum and use instead of constants 2022-04-01 17:41:58 -05:00
Ben Ramsey 189f7f69ca Remove DeprecatedUuidInterface and trait 2022-03-27 23:10:05 -05:00
Ben Ramsey 9849671d20 Remove deprecated getNumberConverter() method 2022-03-27 23:06:05 -05:00
Ben Ramsey 973b87ce91 Merge branch '4.x' into 5.x 2022-03-27 22:58:54 -05:00
Ben Ramsey 418e9c6339 Move getUrn() documentation according to interface changes 2022-03-27 22:56:29 -05:00
Ben Ramsey d2ae388821 Remove deprecated getDateTime() method 2022-03-27 22:52:01 -05:00
Ben Ramsey 5b98a2fee1 Introduce TimeBasedInterface for UUIDs derived from time 2022-03-27 22:50:14 -05:00
Ben Ramsey cc4df59001 Remove deprecated getVersion() method 2022-03-27 21:47:55 -05:00
Ben Ramsey 8595a6d8c1 Remove deprecated getVariant() method 2022-03-27 21:28:55 -05:00
Ben Ramsey b1c03e96eb Merge branch '4.x' into 5.x 2022-03-27 21:01:19 -05:00
Ben Ramsey 115ec653d8 Un-deprecate UuidInterface::getUrn() 2022-03-27 20:55:27 -05:00
Ben Ramsey 506a781667 Remove deprecated getFieldsHex() method 2022-03-27 20:40:12 -05:00
Ben Ramsey 67abb86aaf Remove remaining deprecated getClockSeq*() methods 2022-03-27 20:32:00 -05:00
Ben Ramsey e4c7ea0755 Remove deprecated getNode*() methods 2022-03-27 20:22:45 -05:00
Ben Ramsey 23d54b85cb Remove deprecated getTimestamp*() methods 2022-03-27 20:05:08 -05:00
Ben Ramsey b0b5c12bac Remove deprecated getTimeMid*() methods 2022-03-27 19:45:17 -05:00
Ben Ramsey 045c33ba3b Remove deprecated getTimeLow*() methods 2022-03-27 19:34:45 -05:00
Ben Ramsey c47a71f2b1 Remove deprecated getTimeHiAndVersion*() methods 2022-03-27 19:20:40 -05:00
Ben Ramsey eed2aecc17 Remove deprecated getMostSignificantBits*() methods 2022-03-27 18:58:06 -05:00
Ben Ramsey 5541b3d045 Remove deprecated getLeastSignificantBits*() methods 2022-03-27 18:51:18 -05:00
Ben Ramsey f810c0a50c Remove deprecated getClockSequenceHex() method 2022-03-27 18:44:47 -05:00
Ben Ramsey ddb4ce0aca Remove deprecated getClockSeqLowHex() method 2022-03-27 18:32:51 -05:00
Ben Ramsey 5605cbcadc Merge branch '4.x' into 5.x 2022-03-27 16:44:58 -05:00
Ben Ramsey 8505afd4fe Prepare release 4.3.1 4.3.1 2022-03-27 16:42:02 -05:00
Ben Ramsey 1d4077d213 Remove deprecated getClockSeqHiAndReservedHex() method 2022-03-27 16:37:53 -05:00
Ben Ramsey eebc792d6f Remove deprecated Ramsey\Uuid\Builder\DefaultUuidBuilder 2022-03-27 13:59:57 -05:00
Ben Ramsey 2fad6c1107 Specify length as a positive-int 2022-03-27 13:51:50 -05:00
Ben Ramsey 18688488e1 Remove deprecated "degraded" classes that used moontoast/math 2022-03-27 13:51:14 -05:00
Ben Ramsey c2cfd0c4fb Remove deprecated Ramsey\Uuid\Generator\RandomLibAdapter 2022-03-27 13:17:39 -05:00
Ben Ramsey b688545892 Merge branch '4.x' into 5.x 2022-03-27 13:10:38 -05:00
Ben Ramsey a7c1432bf4 Remove branch alias for 4.x-dev 2022-03-27 13:07:12 -05:00
Ben Ramsey d98bef096f Deprecate Ramsey\Uuid\Generator\RandomLibAdapter 2022-03-27 13:03:58 -05:00
Ben Ramsey b365347cf5 chore: remove deprecated collection classes 2022-03-27 12:53:58 -05:00
Ben Ramsey 20ebda0923 Merge pull request #407 from szepeviktor/patch-1
Keep PHPStan ignored errors up-to-date
2022-03-27 12:24:05 -05:00
Viktor Szépe 97553d3122 Remove resolved and ignored PHPStan errors 2022-03-27 03:30:24 +00:00
Viktor Szépe 125c4844a8 Keep PHPStan ignored errors up-to-date 2022-03-27 03:27:48 +00:00
Ben Ramsey 8ced2afadd chore: prepare release 4.3.0 4.3.0 2022-03-26 17:00:50 -05:00
Ben Ramsey a9d1aaed33 chore: allow plugins in composer.json 2022-03-26 17:00:50 -05:00
Ben Ramsey d3b5d6f58d Merge pull request #403 from ramsey/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-03-26 16:21:44 -05:00
Ben Ramsey 66d7c3f148 Merge branch 'main' into dependabot/github_actions/actions/checkout-3 2022-03-26 16:17:55 -05:00
Ben Ramsey c524362d28 Merge pull request #406 from Ocramius/feature/remove-ramsey-collection-dependency
Allow `iterable<T>` where `ramsey/collection` would be used, deprecate collection classes
2022-03-24 20:10:37 -05:00
Ben Ramsey a3ba4a9ad2 Merge branch 'main' into feature/remove-ramsey-collection-dependency 2022-03-24 20:05:10 -05:00
Ben Ramsey 49391a3a9d Merge pull request #405 from Ocramius/feature/remove-cruft
Bump to PHP 8.0, remove polyfills, require ext-ctype, lock dependencies, improve dependency upgrade automation
2022-03-24 20:00:47 -05:00
Marco Pivetta f0ada112c5 Allow iterable<T> where ramsey/collection would be used, deprecate collection classes
This patch is based on https://github.com/ramsey/uuid/pull/405

As discussed in https://github.com/ramsey/uuid/pull/405#discussion_r832095457, the `ramsey/collection`
dependency can be phased out.

Doing so via direct removal is not feasible without a clear BC break, so this change only deprecates:

 * `Ramsey\Uuid\Builder\BuilderCollection`
 * `Ramsey\Uuid\Provider\Node\NodeProviderCollection`

These classes will then be removed in `5.0.0`, along with the `ramsey/collection` dependency.
2022-03-22 17:30:42 +01:00
Marco Pivetta 53d9f35c65 Allow upgrading all dependencies in composer.lock via @dependabot (not just composer.json) 2022-03-22 12:55:33 +01:00
Marco Pivetta 57f5539601 Introduced automation to auto-merge @dependabot patches, if they are green
In practice, when @dependabot sends a patch, this workflow will be triggered once the `build`
workflow is completed successfully, and applicable patches will be automatically merged.
2022-03-22 12:54:19 +01:00
Marco Pivetta 9a9decd604 Ensure composer.lock is present, to allow for reproducible local-dev and CI testing
While trying out latest `main`, it became evident that CI is not really stable, in its current
state, because dependencies like `phpunit/phpunit`, `vimeo/psalm`, `phpstan/phpstan` and `squizlab/php_codesniffer`
keep shifting within the boundaries of `composer.json`.

In order to freeze them in place, `composer.lock` is introduced, so that they can be upgraded
individually, therefore preventing headaches when installing the project locally, for either
verifying a bug, or contributing to it.

This change is a bit of a shift from the previous approach, but should allow for better stability,
and better dependency upgrade/checking, so that @dependabot patches breaking CI can be identified
more easily.
2022-03-22 12:53:21 +01:00
Marco Pivetta 5f9cd80b1b Migrated from PHPUnit_Framework_TestCase#assertRegExp() (deprecated) to #assertMatchesRegularExpression() 2022-03-22 12:43:22 +01:00
Marco Pivetta 4cae6c8914 Removed redundant string cast, now correctly identified by vimeo/psalm:^4.20
`substr()` only fails when one of the inputs is not a `string`, but that no longer
holds true as per `php:^8.0`, since the input must be a `string` upfront.
2022-03-22 12:42:55 +01:00
Marco Pivetta 95eb7de42b Removed redundant range check, now correctly identified by vimeo/psalm:^4.20 2022-03-22 12:42:10 +01:00