Commit Graph

1411 Commits

Author SHA1 Message Date
Ben Ramsey 60b96aa4f4 Update ergebnis/composer-normalize in lock file 2025-12-13 20:51:37 -06:00
dependabot[bot] 5112ad8567 chore(deps): bump actions/checkout from 5 to 6 2025-12-13 20:36:25 -06:00
Ben Ramsey d0766eba87 Set lowest brick/math version to 0.8.16 for BigInteger::toBytes() 2025-12-13 20:29:30 -06:00
Ben Ramsey bec7176b05 Update brick/math for static analysis but downgrade in tests for PHP 8.0 2025-12-13 20:19:54 -06:00
Ben Ramsey 4618169496 Ignore PHPStan errors about possibly impure method calls 2025-12-13 19:54:15 -06:00
Ben Ramsey ff16728c5c Remove explicit int cast to avoid warning in PHP 8.5 2025-12-13 19:53:16 -06:00
dependabot[bot] cd47a01a1f chore(deps-dev): bump sebastian/recursion-context from 4.0.5 to 4.0.6 2025-10-06 16:07:16 -05:00
dependabot[bot] 7ccc0b6be5 chore(deps-dev): bump symfony/polyfill-ctype from 1.32.0 to 1.33.0 2025-09-29 21:45:36 -05:00
dependabot[bot] e74a4539b8 chore(deps-dev): bump localheinz/diff from 1.2.0 to 1.3.0 2025-09-29 19:29:12 -05:00
dependabot[bot] 2a14598d4d chore(deps-dev): bump ergebnis/json from 1.4.0 to 1.6.0 2025-09-29 19:03:26 -05:00
dependabot[bot] cfe55a7873 chore(deps-dev): bump symfony/polyfill-php80 from 1.32.0 to 1.33.0 2025-09-29 17:45:32 -05:00
dependabot[bot] 2fdfd64bdc chore(deps-dev): bump paragonie/sodium_compat from 1.21.1 to 1.21.2 2025-09-29 17:25:33 -05:00
dependabot[bot] 6c074f9ab2 chore(deps-dev): bump marc-mabe/php-enum from 4.7.1 to 4.7.2 2025-09-22 16:07:56 -05:00
dependabot[bot] 7390d3a0ad chore(deps-dev): bump slevomat/coding-standard from 8.19.1 to 8.22.1 2025-09-15 17:06:19 -04:00
dependabot[bot] da7a676315 chore(deps): bump symfony/polyfill-php81 from 1.32.0 to 1.33.0 2025-09-08 16:21:29 -05:00
dependabot[bot] c6ea5d680d chore(deps-dev): bump symfony/polyfill-mbstring from 1.32.0 to 1.33.0 2025-09-08 16:16:03 -05:00
dependabot[bot] 558860fff1 chore(deps-dev): bump phpstan/phpstan from 2.1.21 to 2.1.22 (#614) 2025-09-04 16:11:36 -05:00
Ben Ramsey 81f941f6f7 Prepare release 4.9.1 4.9.1 2025-09-04 15:59:21 -05:00
Christophe Coevoet 592a97d70f Add support for brick/math 0.14 (#617) 2025-09-04 15:51:02 -05:00
dependabot[bot] 101bb3a166 chore(deps): bump actions/checkout from 4 to 5 2025-08-12 01:53:16 -05:00
dependabot[bot] 169ad8c6db chore(deps-dev): bump phpstan/phpstan-phpunit from 2.0.6 to 2.0.7 2025-07-28 19:26:07 -05:00
dependabot[bot] 147757cea2 chore(deps-dev): bump captainhook/captainhook from 5.25.6 to 5.25.10 2025-07-28 17:53:48 -05:00
dependabot[bot] 7e9509d751 chore(deps-dev): bump phpstan/phpdoc-parser from 2.1.0 to 2.2.0 2025-07-14 19:53:59 -05:00
dependabot[bot] 2c22065d3e chore(deps-dev): bump captainhook/captainhook from 5.25.5 to 5.25.6 2025-07-07 19:35:37 -05:00
dependabot[bot] 0ff3d8d1c9 chore(deps-dev): bump myclabs/deep-copy from 1.13.1 to 1.13.3 2025-07-07 18:44:20 -05:00
dependabot[bot] 4025078c2e chore(deps-dev): bump dealerdirect/phpcodesniffer-composer-installer 2025-06-30 20:14:05 -05:00
Ben Ramsey f239d6c806 Default to microtime() instead of DateTimeImmutable 2025-06-26 21:21:05 -05:00
Ben Ramsey 4e0e23cc78 Prepare release 4.9.0 4.9.0 2025-06-25 09:20:11 -05:00
Ben Ramsey 1fffdc32f1 Call getFields() only once 2025-06-25 08:24:36 -05:00
Ben Ramsey 4ca249e960 Ignore the "result unused" error in tests from the PHPStan config 2025-06-25 08:24:36 -05:00
Ben Ramsey 088b87356d Use explicit error identifiers when ignoring PHPStan errors 2025-06-25 08:24:36 -05:00
Brandon Morrison aa18ce15d5 Fix pure annotations (#605)
Coming from https://github.com/ramsey/uuid/pull/603, this is an attempt
to fix the errors raised by the current phpstan settings.

I went through each of the errors raised by phpstan with the following
approach.

- If a method is part of an `@immutable` class, we can consider it pure,
  assuming it only affects internal variables.
- If a potentially pure method is calling a class's method that is only
  swapped during testing (and not during normal usage), then we can
  consider the calling method pure.
- If a class is marked deprecated, don't bother with attempting to mark
  it pure or immutable.
2025-06-25 08:24:36 -05:00
Ben Ramsey df575bdb79 Re-add the @pure annotations
These were removed in 691c2c816e but
should remain in the code base.
2025-06-25 08:24:36 -05:00
dependabot[bot] dbc810466d chore(deps-dev): bump squizlabs/php_codesniffer from 3.13.1 to 3.13.2 2025-06-23 18:34:18 -05:00
Ben Ramsey eaa5e16923 Assert the length of time bytes is 6 2025-06-23 18:01:01 -05:00
Ben Ramsey f2956967f2 Update tests for testing bytes "rollover" 2025-06-23 17:32:33 -05:00
Ben Ramsey b40c069763 Remove errant echo statement from test.
[skip ci]
2025-06-23 15:27:20 -05:00
Ben Ramsey 7abc2f2035 Ensure tests are properly checking against the previous values 2025-06-22 17:38:46 -05:00
Ben Ramsey 6bbdb8c0e7 Update Composer lock file 2025-06-22 17:38:45 -05:00
dependabot[bot] e957fd25b3 chore(deps-dev): bump sebastianfeldmann/git from 3.14.2 to 3.14.3 2025-06-16 21:13:49 -05:00
dependabot[bot] 6b9adff814 chore(deps-dev): bump squizlabs/php_codesniffer from 3.13.0 to 3.13.1 2025-06-16 18:29:25 -05:00
dependabot[bot] 777e7256c2 chore(deps-dev): bump captainhook/captainhook from 5.25.2 to 5.25.5 2025-06-16 18:07:43 -05:00
dependabot[bot] e512568297 chore(deps-dev): bump justinrainbow/json-schema from 6.4.1 to 6.4.2 2025-06-09 17:06:57 -05:00
dependabot[bot] 10c230387f chore(deps-dev): bump slevomat/coding-standard from 8.18.1 to 8.19.1 2025-06-09 16:45:06 -05:00
Massimiliano Arione 8460cbacb4 remove useless ext-json requirement (#596)
Fix #595
2025-06-06 19:44:28 -05:00
dependabot[bot] 0823fc23fc chore(deps-dev): bump nikic/php-parser from 5.4.0 to 5.5.0 2025-06-02 16:47:47 -05:00
Ben Ramsey fdf4dd4e2f Prepare release 4.8.1 4.8.1 2025-06-01 01:28:46 -05:00
Ben Ramsey b366701d62 Update documentation with references to RFC 9562 2025-06-01 00:47:29 -05:00
Ben Ramsey 6700833915 Prepare for release 4.8.0 4.8.0 2025-05-31 21:32:15 -05:00
Ben Ramsey a11a7e5bde Lock brick/math to ^0.9 for testing and update CHANGELOG 2025-05-31 20:42:10 -05:00