Commit Graph

1154 Commits

Author SHA1 Message Date
dependabot[bot] b4ebc7dee1 Bump squizlabs/php_codesniffer from 3.6.2 to 3.7.1 (#443)
Bumps [squizlabs/php_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) from 3.6.2 to 3.7.1.
- [Release notes](https://github.com/squizlabs/PHP_CodeSniffer/releases)
- [Commits](https://github.com/squizlabs/PHP_CodeSniffer/compare/3.6.2...3.7.1)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-06 09:26:23 -05:00
dependabot[bot] 36388a2ed6 Bump symfony/polyfill-php81 from 1.25.0 to 1.26.0 (#441)
Bumps symfony/polyfill-php81 from 1.25.0 to 1.26.0.

---
updated-dependencies:
- dependency-name: symfony/polyfill-php81
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-06 09:18:27 -05:00
carlos-ea 124eee18da Fix "upgrade version 3 to 4"-url (#438) 2022-08-23 11:29:40 -05:00
Ben Ramsey 2083110316 feat: deprecate variant and version constants 2022-08-12 20:18:40 -05:00
George Steel b4dff559ab Assert non-empty-string when UUID is valid (#410)
* Assert, for psalm, the string is non-empty if validation passes
* Adds a test for SA asserting that valid string are also non-empty
* Suppress PHPStan error for unsupported conditional type assertion
* Check SA tools don't complain about non-empty-string as input parameter to `Uuid::isValid()`
2022-08-09 10:04:36 -05:00
Ben Ramsey bc6cd7d888 Deprecate factory methods; improve deprecation docblocks 2022-08-09 09:24:01 -05:00
Ben Ramsey 2da480d7a3 Fix function type hinting 2022-08-05 17:36:05 -05:00
Ben Ramsey 7b3eaf32c7 Deprecate Uuid::setFactory() and Uuid::getFactory() 2022-08-05 17:34:18 -05:00
Ben Ramsey 55693967d7 Deprecate direct instantiation of Ramsey\Uuid\Uuid 2022-08-05 17:28:11 -05:00
Ben Ramsey 928a62c715 Bump lowest brick/math version to 0.8.8 and update brick/math 2022-08-05 15:25:07 -05:00
Ben Ramsey edb10483fb Squelch deprecation errors when running PHPUnit
These errors occur on UuidInterface, and the solution is to add
__unserialize() and __serialize() to the interface, but this cannot take
place until the next major version bump.
2022-08-05 14:47:05 -05:00
Ben Ramsey f1891183f9 Upgrade PHPStan 2022-08-05 14:46:56 -05:00
Ben Ramsey 373f7bacfc Prepare release 4.4.0 4.4.0 2022-08-05 12:58:37 -05:00
Ben Ramsey 1b4972142b Update CI pipeline 2022-08-05 12:21:57 -05:00
Ben Ramsey c4b834301d Update links to 4.x branch 2022-08-05 12:21:57 -05:00
dependabot[bot] 01433b5288 Bump phpbench/phpbench from 1.2.5 to 1.2.6 (#436)
Bumps [phpbench/phpbench](https://github.com/phpbench/phpbench) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/phpbench/phpbench/releases)
- [Changelog](https://github.com/phpbench/phpbench/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phpbench/phpbench/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: phpbench/phpbench
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-05 12:14:57 -05:00
dependabot[bot] 70887fdd4c Bump codecov/codecov-action from 2.1.0 to 3.1.0 (#416)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.1.0 to 3.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2.1.0...v3.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-05 11:56:45 -05:00
Alexander Schranz a800c468aa Remove dependency to moontoast/math (#426) 2022-08-05 11:50:28 -05:00
Remi Collet bd2df8d29d Allow brick/math 0.10
Closes #424, #427, #434

Co-authored-by: Alexander Schranz <alexander@sulu.io>
Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
2022-08-05 11:45:00 -05:00
Simon Podlipsky 9a8ea11ad3 fix: adapt tests to reflect GH-7758 (#435) 2022-08-05 11:31:53 -05:00
Ben Ramsey 418e9c6339 Move getUrn() documentation according to interface changes 2022-03-27 22:56:29 -05:00
Ben Ramsey 115ec653d8 Un-deprecate UuidInterface::getUrn() 2022-03-27 20:55:27 -05:00
Ben Ramsey 8505afd4fe Prepare release 4.3.1 4.3.1 2022-03-27 16:42:02 -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 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
Marco Pivetta 7e04dde8fd Upgraded psalm.xml to be compatible with vimeo/psalm:^4.20
This moves from `totallyTyped="true"` to `errorLevel="1"`, since `totallyTyped="true"` was deprecated, and
leads to a CI failure.
2022-03-22 12:41:43 +01:00
Marco Pivetta 56291a3c1d Removed support for PHP 7.2, 7.3, 7.4, required ext-ctype to be installed
TL;DR: polyfills are to be installed by downstream consumers, and not provided by libraries

In order to support PHP 7.2, 7.3 and 7.4, the `symfony/polyfill-php80` library
was dragged in. Symfony now has a long track record of bad stability ranges
(see https://github.com/symfony/polyfill-php80/blob/f4386d7f6f66346254ed4e6bfa4354d2d16b83f8/composer.json#L22-L24),
so it is best to get rid of it, and instead declare API compatibility with a stable API
version (in this case PHP 8.0).

In addition to that, to avoid introducing an explicit `ext-ctype` requirement, `symfony/polyfill-ctype`
was dragged in too, perhaps in an attempt to retain more popularity.
Same as above: symfony has a bad track record of SemVer compliance, so it should
not be introduced until strictly necessary. `ext-ctype` is generally available to most target
installation systems, and downstream consumers are still free to pull out their foot-gun by
doing a `composer require symfony/polyfill-ctype` on their own.
This mean that systems having `ext-ctype` installed will get an installation as expected: otherwise,
any system that requires `ramsey/uuid` automatically becomes a system capable of providing `ext-ctype`
API, which is just not true (before this change).
2022-03-22 12:40:54 +01:00
dependabot[bot] 9d8c56e3ae Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 21:07:48 +00:00
hubipe e3e9179f27 LazyUuidFromString for valid UUIDs in uppercase (#401) 2022-01-29 13:05:59 -06:00
Lewis Cowles 785bcf264d Use version 2 of ramsey/composer-install (#396)
I mostly want to check if dependabot suggests this change after #395 or if it does more.
2022-01-04 19:27:30 -06:00
Sergey Romanenko 33059780b5 Update license year (#398) 2022-01-04 19:26:41 -06:00
Ben Ramsey e5fa293e14 Merge pull request #397 from ramsey/dependabot/github_actions/codecov/codecov-action-2.1.0
Bump codecov/codecov-action from 1 to 2.1.0
2021-12-24 10:04:50 -06:00
dependabot[bot] 88043e7754 Bump codecov/codecov-action from 1 to 2.1.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 16:01:23 +00:00