Commit Graph

1162 Commits

Author SHA1 Message Date
Ben Ramsey 4eff9d7348 ci: bump dependabot schedule to weekly 2022-09-06 17:03:23 -05:00
dependabot[bot] f2f1bc384a Bump paragonie/sodium_compat from 1.17.0 to 1.17.1 (#450)
Bumps paragonie/sodium_compat from 1.17.0 to 1.17.1.

---
updated-dependencies:
- dependency-name: paragonie/sodium_compat
  dependency-type: indirect
  update-type: version-update:semver-patch
...

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 16:53:52 -05:00
dependabot[bot] 8ea2b9fdaa Bump brick/math from 0.10.1 to 0.10.2 (#449)
Bumps [brick/math](https://github.com/brick/math) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/brick/math/releases)
- [Changelog](https://github.com/brick/math/blob/master/CHANGELOG.md)
- [Commits](https://github.com/brick/math/compare/0.10.1...0.10.2)

---
updated-dependencies:
- dependency-name: brick/math
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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 16:37:35 -05:00
dependabot[bot] fb8bb8e369 Bump phpstan/phpdoc-parser from 1.2.0 to 1.8.0 (#448)
Bumps [phpstan/phpdoc-parser](https://github.com/phpstan/phpdoc-parser) from 1.2.0 to 1.8.0.
- [Release notes](https://github.com/phpstan/phpdoc-parser/releases)
- [Commits](https://github.com/phpstan/phpdoc-parser/compare/1.2.0...1.8.0)

---
updated-dependencies:
- dependency-name: phpstan/phpdoc-parser
  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 16:18:15 -05:00
dependabot[bot] 24adccb1d8 Bump phpstan/phpstan from 1.8.2 to 1.8.4 (#447)
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.8.2 to 1.8.4.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.8.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.8.2...1.8.4)

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

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 16:10:54 -05:00
dependabot[bot] 98d04c9b8a Bump symfony/filesystem from 5.4.11 to 5.4.12 (#446)
Bumps [symfony/filesystem](https://github.com/symfony/filesystem) from 5.4.11 to 5.4.12.
- [Release notes](https://github.com/symfony/filesystem/releases)
- [Changelog](https://github.com/symfony/filesystem/blob/6.1/CHANGELOG.md)
- [Commits](https://github.com/symfony/filesystem/compare/v5.4.11...v5.4.12)

---
updated-dependencies:
- dependency-name: symfony/filesystem
  dependency-type: indirect
  update-type: version-update:semver-patch
...

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>
Co-authored-by: Ben Ramsey <ben@benramsey.com>
2022-09-06 16:04:20 -05:00
Ben Ramsey cac33c8493 ci: open only one dependabot PR at a time
This reduces the amount of work GitHub has to to every time a PR is merged, since Dependabot then has to rebase and update all open Dependabot PRs.
2022-09-06 15:49:01 -05:00
dependabot[bot] c634fa9273 Bump vimeo/psalm from 4.22.0 to 4.27.0 (#444)
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.22.0 to 4.27.0.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.22.0...4.27.0)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  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 15:40:33 -05:00
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