Commit Graph

996 Commits

Author SHA1 Message Date
Marco Pivetta 0f68910bf2 Optimized Uuid::fromBytes() de-serialization to use LazyUuidFromString where possible 2020-07-09 13:57:30 +02:00
Marco Pivetta 569e93ac4e Re-implemented Uuid::fromString() so it produces a LazyUuidFromString when possible
This should speed up `Uuid::fromString()` massively, leading to much shallower execution
paths when `toString()` and similar simplistic API is required.
2020-07-09 13:57:30 +02:00
Marco Pivetta 8d42044a99 Minimal benchmarks around Uuid::fromString(), Uuid::fromBytes(), Uuid#toString(), Uuid#getBytes()
This is mostly to store an initial state, before we go on and start manipulating the UUID library internals.
2020-07-09 13:56:04 +02:00
Ben Ramsey 22ee596348 Make serialize(UuidInterface) more compact
Resolves #318
2020-07-08 15:27:19 -05:00
Ben Ramsey a741fc66ac Merge pull request #323 from ramsey/dependabot/composer/dealerdirect/phpcodesniffer-composer-installer-tw-0.6.2or-tw-0.7.0
Update dealerdirect/phpcodesniffer-composer-installer requirement from ^0.6.2 to ^0.6.2 || ^0.7.0
2020-06-25 19:03:06 -05:00
dependabot-preview[bot] fcbe5731ce Update dealerdirect/phpcodesniffer-composer-installer requirement || ^0.7.0
Updates the requirements on dealerdirect/phpcodesniffer-composer-installer to permit the latest version.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-25 17:59:03 +00:00
Ben Ramsey f656e061da Merge pull request #315 from mitch292/issue/313/remove-phpdoc-parser
Remove phpstan/phpdoc-parser from dev dependencies
2020-05-10 16:42:12 -05:00
Andrew Mitchell 1944a1536b Remove phpstan/phpdoc-parser from dev dependencies 2020-05-09 18:33:33 -04:00
Ben Ramsey 4afe899c34 Merge pull request #312 from ramsey/dependabot/composer/phpstan/phpdoc-parser-0.4.4
Update phpstan/phpdoc-parser requirement from 0.4.3 to 0.4.4
2020-04-25 13:47:56 -05:00
dependabot-preview[bot] d513d4c6a0 Update phpstan/phpdoc-parser requirement from 0.4.3 to 0.4.4
Updates the requirements on [phpstan/phpdoc-parser](https://github.com/phpstan/phpdoc-parser) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpdoc-parser/releases)
- [Commits](https://github.com/phpstan/phpdoc-parser/compare/0.4.3...0.4.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 16:09:55 +00:00
Ben Ramsey b3c3920875 Fix space before break style error 2020-03-31 16:52:23 -05:00
Ben Ramsey ba8fff1d3a Fix collection deserialization errors 4.0.1 2020-03-29 15:13:32 -05:00
Ben Ramsey 15f777bb36 Replace abandoned package with recommended package 2020-03-29 12:17:27 -05:00
Ben Ramsey 7d31abd267 Merge pull request #300 from Ocramius/feature/uuid5-is-pure
Marking `Uuid::uuid5()` as pure: same input leads to same output, and no I/O under normal operational constraints
2020-03-27 13:12:21 -05:00
Marco Pivetta 15a5d4f5e1 Propagating @psalm-pure to factories and builders used internally to purely assemble a UuidInterface
Ref: https://github.com/ramsey/uuid/pull/300#issuecomment-601329450
2020-03-23 11:25:22 +01:00
Marco Pivetta c8e8b7b693 Marking Uuid::uuid3() as pure as well: it produces same values for same input 2020-03-23 10:18:21 +01:00
Marco Pivetta e830b23d77 Marking Uuid::uuid5() as pure: same input leads to same output, and no I/O under normal operational constraints 2020-03-23 10:18:21 +01:00
Ben Ramsey 2c9644b1d0 Release 4.0.0 4.0.0 2020-03-21 21:34:13 -05:00
Ben Ramsey 19a3ccb39c Prepare for 4.0.0 release 2020-03-17 12:22:37 -05:00
Ben Ramsey 5808507468 Add a REPL script for testing 2020-03-17 12:00:22 -05:00
Ben Ramsey fcfcd3fb60 Fix failing tests on Windows
escapeshellargs() uses different quotation mark characters between Linux
and Windows, so tests were failing on Windows. This change uses a
regular expression instead.
2020-03-17 11:43:45 -05:00
Ben Ramsey 744c05798a [ci skip] Add Uuid method return types that have changed (slightly) 2020-03-16 11:36:36 -05:00
Ben Ramsey 706bac009f Fix PHPStan errors 2020-03-16 10:44:20 -05:00
Ben Ramsey fd5669daef Attempt to run the full build on PHP 8 2020-03-16 10:22:32 -05:00
Ben Ramsey fc9d5e39e2 Merge pull request #299 from andysnell/proofread-v4-docs
Fix Minor Typos in Docs
2020-03-15 21:21:30 -05:00
Andy Snell 7b068c6bea Fix Minor Typos in Docs 2020-03-15 20:49:09 -05:00
Ben Ramsey 7e83bf502d [ci skip] Remove ko-fi link from FUNDING.yml 2020-03-15 12:25:17 -05:00
Ben Ramsey ebce23f2b0 Merge pull request #297 from jpjoao/docs
Fix small issues with docs
2020-03-15 12:18:48 -05:00
Joao Paulo V Martins 62fdcbbed0 Update docs/database.rst
Co-Authored-By: Ben Ramsey <ben@benramsey.com>
2020-03-15 16:43:57 +00:00
João Paulo V Martins 8e7b3a43eb Fix small issues with docs 2020-03-15 15:55:21 +00:00
Ben Ramsey 30550388e0 [ci skip] Update version constraint tip to mention downstream reqs 2020-03-14 17:28:20 -05:00
Ben Ramsey e55a984c9d Add tip for Composer version constraint 2020-03-14 17:21:13 -05:00
Ben Ramsey d581ec5538 Merge branch 'dependabot/composer/phpstan/phpdoc-parser-0.4.3' 2020-03-14 17:05:10 -05:00
Ben Ramsey 9f20f1fab8 Merge branch 'master' into dependabot/composer/phpstan/phpdoc-parser-0.4.3 2020-03-14 17:04:56 -05:00
Ben Ramsey 995d603207 Merge branch 'dependabot/composer/dealerdirect/phpcodesniffer-composer-installer-tw-0.5.0or-tw-0.6.0' 2020-03-14 17:04:09 -05:00
Ben Ramsey 5180a59924 Use dealerdirect/phpcodesniffer-composer-installer v0.6.2 2020-03-14 17:03:50 -05:00
Ben Ramsey 62f6a863a7 Merge branch 'master' into dependabot/composer/dealerdirect/phpcodesniffer-composer-installer-tw-0.5.0or-tw-0.6.0 2020-03-14 16:59:55 -05:00
Ben Ramsey 99fdabcee3 Lock vimeo/psalm to 3.9.4, since 3.9.5 causes false failures 2020-03-14 16:59:06 -05:00
Ben Ramsey 271fdc81e9 Finish documentation for version 4.0.0 of library 2020-03-14 16:48:14 -05:00
Ben Ramsey 50dc89eeae Make sure all documentation files have references 2020-03-10 17:15:33 -05:00
Ben Ramsey 07e3254913 Set validator classes to psalm-immutable 2020-03-09 17:08:49 -05:00
Ben Ramsey 67665bf107 Build the time generator when setting the calculator 2020-03-09 17:08:23 -05:00
Ben Ramsey e7fb0780d1 [ci skip] Add documentation for replacing default factory 2020-03-09 17:07:58 -05:00
Ben Ramsey 58df4fab1a [ci skip] Add documentation for using custom validator 2020-03-09 16:19:55 -05:00
Ben Ramsey 453806576d [ci skip] Add documentation for replacing default calculator 2020-03-09 15:05:42 -05:00
dependabot-preview[bot] 5e88e285ec Update phpstan/phpdoc-parser requirement from 0.4.1 to 0.4.3
Updates the requirements on [phpstan/phpdoc-parser](https://github.com/phpstan/phpdoc-parser) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpdoc-parser/releases)
- [Commits](https://github.com/phpstan/phpdoc-parser/compare/0.4.1...0.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 03:32:51 +00:00
Ben Ramsey c75ad1d584 Update description of library 2020-03-08 22:31:21 -05:00
Ben Ramsey 11da1979ee Merge branch 'master' into dependabot/composer/dealerdirect/phpcodesniffer-composer-installer-tw-0.5.0or-tw-0.6.0 2020-03-08 22:27:29 -05:00
Ben Ramsey 98971a93f8 [ci skip] Remove wiki as a "support" venue 2020-03-08 22:26:10 -05:00
Ben Ramsey ffc5e32740 [ci skip] Complete the "customization" portion of the documentation 2020-03-08 22:15:48 -05:00