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
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
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
Ben Ramsey
954cb23d5e
Allow builds to fail on PHP 8.0
2020-10-28 22:22:54 -05:00
Ben Ramsey
4d7b904321
Do not use pecl-uuid extension in workflow
2020-10-28 21:45:54 -05:00
Ben Ramsey
9409ea98ba
Revert "Commit lockfile for Composer"
...
This reverts commit e3771b067a .
2020-10-28 21:45:07 -05:00
Ben Ramsey
b3f050110e
Add CI workflow for GitHub Actions
2020-10-28 21:39:44 -05:00
Ben Ramsey
e3771b067a
Commit lockfile for Composer
2020-10-28 21:22:35 -05:00
Ben Ramsey
eb355012a5
Add security policy
2020-10-28 21:21:21 -05:00
Ben Ramsey
0a25f73ae0
Fix static analysis issues
2020-10-28 21:19:26 -05:00
Ben Ramsey
e4562b089b
Merge pull request #335 from Bilge/redundant-interfaces
...
Removed redundant interface speficiation
2020-08-23 15:04:10 -05:00
Bilge
49b772a5e2
Removed redundant interface inheritance.
2020-08-23 19:36:53 +01:00
Ben Ramsey
d103e07a2c
Merge pull request #333 from Bilge/assert-same
...
Use assertSame instead of assertEquals
2020-08-23 12:45:58 -05:00
Bilge
7947413a76
Use assertSame instead of assertEquals.
2020-08-23 13:53:19 +01:00
Ben Ramsey
cd4032040a
Update CHANGELOG for version 4.1.1
4.1.1
2020-08-18 12:17:46 -05:00
Ben Ramsey
2bbfa75a47
Merge pull request #332 from simPod/brick-math-9
...
Add support for brick/math ^0.9
2020-08-18 12:13:51 -05:00
Simon Podlipsky
17638f627c
Add support for brick/math ^0.9
2020-08-18 14:40:28 +02:00
Ben Ramsey
69b3eb8824
Fix links in CHANGELOG
2020-07-28 11:52:54 -05:00
Ben Ramsey
988dbefc78
Update CHANGELOG for 4.1.0 release
4.1.0
2020-07-28 11:51:01 -05:00
Ben Ramsey
9ebb0eb9ed
Merge pull request #324 from Ocramius/feature/happy-path-performance-improvements
...
Improved performance of `Uuid::fromString()`, `Uuid::fromBytes()`, `UuidInterface#toString()`, `UuidInterface#getBytes()`
2020-07-10 15:25:54 -05:00
Marco Pivetta
0c2b4074d2
Minor performance optimization: LazyUuidFromString#unwrap() now uses an internal instance cache for unwrapped instances
2020-07-09 14:39:36 +02:00
Marco Pivetta
fa14d04231
Added benchmark about extracting UUID field details
2020-07-09 14:23:49 +02:00
Marco Pivetta
6339cd9fbc
Added UUID serialization benchmark
2020-07-09 14:15:05 +02:00
Marco Pivetta
a621ca9e81
Uuid::uuid3() uses impure Uuid::getFactory() API - suppressing it from purity static analysis checks
2020-07-09 14:04:20 +02:00
Marco Pivetta
b805572537
Ensure that Uuid::uuidX() generators produce instances equivalent to Uuid::fromString() and Uuid::fromBytes()
...
With this change, `Uuid::uuid1()`, `Uuid::uuid2()` and so forth now produce a `LazyUuidFromString` instance, which
is both more memory efficient and comparable to `Uuid::fromString()` instances in other tools, such as within
PHPUnit's `Assertion::assertEqual()`, which would reject any two objects not matching each other's types.
Before this patch, `Assertion::assertEquals(Uuid::uuid5(...), Uuid::fromString(...))` would always fail due to
different subtypes produced by the two factory methods.
2020-07-09 13:57:30 +02:00
Marco Pivetta
2421b79841
Added benchmark for UUID generation logic
2020-07-09 13:57:30 +02:00
Marco Pivetta
910e3e459c
Adjusted comment wording: s/string/strict (typo)
...
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de >
2020-07-09 13:57:30 +02:00
Marco Pivetta
1f0cd71d93
Applied fixes and suppressions (sadly) to match psalm/phpstan code quality guidelines
...
We have a lot of deprecated API in here which shouldn't exist in first place, but that
will luckily disappear with v5.0.0 :-)
2020-07-09 13:57:30 +02:00
Marco Pivetta
1ce3f55673
Applied automated CS fixes according to project CS settings
2020-07-09 13:57:30 +02:00
Marco Pivetta
c01872212e
Add phpbench to CI run to ensure that we don't accidentally break benchmarks
...
This is not indicative of performance, but just guarantees that the benchmarks
still run, and that we didn't break them during an upgrade or code change.
2020-07-09 13:57:30 +02:00
Marco Pivetta
0f68910bf2
Optimized Uuid::fromBytes() de-serialization to use LazyUuidFromString where possible
2020-07-09 13:57:30 +02:00