Commit Graph

1144 Commits

Author SHA1 Message Date
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
Ben Ramsey f131f51592 Merge pull request #395 from Lewiscowles1986/patch-1
Use dependabot to suggest updates to all actions
2021-12-24 10:01:03 -06:00
Lewis Cowles 2188e1f6ca Use dependabot to suggest updates to all actions
RE: https://twitter.com/Ocramius/status/1474179909157273601
from
https://twitter.com/ramsey/status/1474178806923595778
2021-12-24 03:17:06 +00:00
Ben Ramsey cd372a7b47 Merge pull request #391 from sergiy-petrov/patch-1
Update continuous-integration.yml
2021-10-13 13:44:27 -05:00
Sergiy Petrov 30aa2dffa6 Update continuous-integration.yml 2021-10-13 20:55:41 +03:00
Ben Ramsey fc9bb7fb53 Add 3.9.6 changelog to the main branch 4.2.3 2021-09-25 18:10:38 -05:00
Ben Ramsey 26df18f17c Switch back to ^8.0 in the PHP version requirement for 4.2.x 2021-09-25 18:04:00 -05:00
Ben Ramsey cdeda7998f Merge branch '4.1.x' 2021-09-25 18:03:04 -05:00
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