Commit Graph

1076 Commits

Author SHA1 Message Date
Ben Ramsey 55256bc2ee Merge pull request #383 from cs278/empty-string
Fix soft BC break with `Uuid::fromString()` signature
2021-08-10 20:02:14 -05:00
Chris Smith ef1eb74c82 Add test covering Uuid::fromString() being called with empty string 2021-08-09 12:55:31 +01:00
Chris Smith 8fa223b1af Fix soft BC break of Uuid::fromString()
Uses an assertion to indicate the `$uuid` variable cannot be an empty
string, satisfying docblock on `LazyUuidFromString`.
2021-08-09 12:51:40 +01:00
Ben Ramsey 7231612a52 chore: prepare release 4.2.0 4.2.0 2021-08-06 17:30:43 -05:00
Ben Ramsey 6c96ded431 Merge pull request #311 from vudaltsov/patch-1
Mark v3() and v5() as pure
2021-08-06 16:31:46 -05:00
Ben Ramsey 4666f7128f Merge branch 'main' into patch-1 2021-08-06 16:27:50 -05:00
Ben Ramsey 06f8e67792 Merge pull request #361 from slevomat/patch-1
Serialization should not use internal codec
2021-08-06 16:25:27 -05:00
Ben Ramsey 51133f5bfe chore: add command to clean build directory 2021-08-06 16:16:26 -05:00
Ben Ramsey ac09e6d7e2 Merge branch 'pawel-slowik-fix-static-analysis' 2021-08-06 16:16:17 -05:00
Ben Ramsey 7ca2832d3b chore: suppress redundant condition complaint 2021-08-06 16:14:11 -05:00
Ben Ramsey fb9ef508b0 Merge branch 'fix-static-analysis' of https://github.com/pawel-slowik/uuid into pawel-slowik-fix-static-analysis 2021-08-06 16:08:43 -05:00
Ben Ramsey 4be5547eec chore: exclude phpstan-tests.neon from archives 2021-08-06 16:03:32 -05:00
Ben Ramsey 25d4d0e36f Merge branch '3.x' 2021-08-06 15:42:55 -05:00
Ben Ramsey be2451bef8 chore: prepare release 3.9.4 3.9.4 2021-08-06 15:32:15 -05:00
Ben Ramsey 5ed105e162 chore: update branch name to "main" 2021-08-06 15:09:59 -05:00
Ben Ramsey 8b43fdba54 chore: remove tag comparison links from changelog 2021-08-06 15:05:47 -05:00
Ben Ramsey 3cff2ee685 chore: update build badge 2021-08-06 14:53:36 -05:00
Ben Ramsey 5a50524fc4 test: update PHPBench 2021-08-06 14:45:45 -05:00
Ben Ramsey b02aeb8732 chore: remove repl script 2021-08-06 14:38:03 -05:00
Ben Ramsey d7379b67af test: update exception message for PHP 8.1 2021-08-06 14:35:42 -05:00
Ben Ramsey 20fa0c9849 ci: do not run benchmarks on PHP 8.1 yet 2021-08-06 14:35:22 -05:00
Ben Ramsey 0b4be8392a fix: check whether property is set 2021-08-06 14:29:01 -05:00
Ben Ramsey e6c8ff8a4f chore: remove phpstan/psalm checks from pre-commit hook 2021-08-06 14:25:46 -05:00
Ben Ramsey 4511ccd7e6 chore(deps): upgrade vimeo/psalm 2021-08-06 14:25:16 -05:00
Ben Ramsey c005f69d6e chore: update package files 2021-08-06 14:05:57 -05:00
Paweł Słowik fe475968db Assure unserialized NodeProviderCollection contains only valid elements
This stops Psalm from complaining about MixedPropertyTypeCoercion
2021-05-24 22:48:58 +02:00
Paweł Słowik 7e4909e764 Assure unserialized BuilderCollection contains only valid elements
This stops Psalm from complaining about MixedPropertyTypeCoercion
2021-05-24 22:44:43 +02:00
Paweł Słowik c02c911ea6 Ignore some PHPStan "no effect" errors in benchmarks
PHPStan errors like these:

Call to static method Ramsey\Uuid\Uuid::uuid3() on a separate line has
no effect.

can be safely ignored here. The lack of effect is intentional in
benchmarks.
2021-05-24 22:36:18 +02:00
Paweł Słowik 19291c6491 Ignore some PHPStan "no effect" errors for static methods in tests
PHPStan errors like these:

Call to static method Ramsey\Uuid\Uuid::fromString() on a separate line
has no effect.

can be safely ignored here. The lack of effect is intentional as we are testing
exceptions.
2021-05-24 22:32:48 +02:00
Paweł Słowik 63231900f9 Ignore some PHPStan "no effect" errors in tests
PHPStan errors like these:

Call to method Ramsey\Uuid\Builder\FallbackBuilder::build() on a separate line
has no effect.

can be safely ignored here. The lack of effect is intentional as we are testing
exceptions.
2021-05-24 22:31:30 +02:00
Paweł Słowik aeb5e4d297 Specify NodeProviderCollection element type
This stops PHPStan from complaining:

Class Ramsey\Uuid\Provider\Node\NodeProviderCollection extends generic class
Ramsey\Collection\AbstractCollection but does not specify its types: T
2021-05-24 22:31:23 +02:00
Paweł Słowik 605ff66148 Specify BuilderCollection element type
This stops PHPStan from complaining:

Class Ramsey\Uuid\Builder\BuilderCollection extends generic class
Ramsey\Collection\AbstractCollection but does not specify its types: T
2021-05-24 22:30:57 +02:00
Barney Hanlon 90a87a7543 Add interface for UUID-related exceptions (#340)
Add common interface for exceptions so that wrappers can identify that is a UUID-related exception
2021-04-23 11:12:51 -05:00
Jan Langer ef25479d05 Serialization should not use internal codec 2021-02-05 17:36:26 +01:00
Martin Auswöger ec2f6b0041 Allow install of paragonie/random_compat 9.99.100 (#359) 2021-02-01 10:54:58 -06:00
Ben Ramsey e5b3699bbe Add Tidelift enterprise page to docs website 2020-11-05 15:15:32 -06:00
Ben Ramsey 8ce627597a Add Tidelift subscription information to readme 2020-11-02 18:02:23 -06:00
Ben Ramsey 87e312b782 Add Tidelift to funding options 2020-11-02 17:55:25 -06:00
Ben Ramsey 31c65e5acf Fix license link Markdown 2020-11-02 17:49:19 -06:00
Ben Ramsey a2c525d2d5 Fix link to license 2020-11-02 17:48:39 -06:00
Ben Ramsey 69bcb50419 Add notice about SECURITY.md to readme 2020-11-02 17:46:02 -06:00
Ben Ramsey 2f3a93c438 chore: remove file from gitattributes 2020-10-31 14:49:08 -05:00
Ben Ramsey ddf40f2acb security: replace security.md with template from hackerone 2020-10-31 14:23:20 -05:00
Ben Ramsey 59957e2b2d Merge branch 'master' into patch-1 2020-10-29 18:30:23 -05:00
Ben Ramsey b941aa1a9a Prepare test suite for PHP 8 2020-10-29 18:24:14 -05:00
Remi Collet 2f92bdf34e Allow phpunit 9 (#350) 2020-10-29 18:22:53 -05:00
Remi Collet ae7df1ceb9 catch ValueError raised by PHP 8 (#352) 2020-10-29 11:57:41 -05:00
Remi Collet e20165e9dd use expectError instead of expectException (#351) 2020-10-29 10:07:00 -05:00
Ben Ramsey 65f39c93f4 Rename codecov yaml file and add to gitattributes 2020-10-28 22:51:20 -05:00
Ben Ramsey b5dadc7eb4 Remove Travis CI config and update readme 2020-10-28 22:43:57 -05:00