Commit Graph

711 Commits

Author SHA1 Message Date
Ben Ramsey 207f46c40b Add CodeTriage message back to CONTRIBUTING.md 2019-11-30 13:16:47 -08:00
Ben Ramsey 64ba9a2767 Clean up code according to PhpStorm inspections report 2019-11-30 13:14:52 -08:00
Ben Ramsey feb3eb50d1 Revert "Mark toString() method as deprecated, scheduled for removal in 4.0.0"
This reverts commit 4c467ce4d5.

For more information, please see the discussion at:
https://github.com/ramsey/uuid/commit/4c467ce4d5a72c3cf0832c813d4d84d222c3d4bb#commitcomment-31174263

Also refer to the discussion at:
https://github.com/ShittySoft/symfony-live-berlin-2018-doctrine-tutorial/pull/3#issuecomment-460441229

TL;DR: I am retaining `toString()` for improved static analysis and
long-term stability.
2019-11-30 12:33:16 -08:00
Ben Ramsey 3f43661fdc Create stubs for testing uuid_* methods for environments without pecl/uuid 2019-11-30 12:19:43 -08:00
Ben Ramsey 4a3ad2d53e Merge branch 'bkayranci-3.x' 2019-11-30 12:19:33 -08:00
Ben Ramsey 555e5c1102 Test usage of PHP_OS constant 2019-11-30 12:18:43 -08:00
Ben Ramsey 92d12eb5c6 Merge branch '3.x' of https://github.com/bkayranci/uuid into bkayranci-3.x 2019-11-30 11:51:54 -08:00
Ben Ramsey 39c610ea31 Clean up project documentation and repo metadata 2019-11-30 11:07:39 -08:00
Ben Ramsey 7fccb64486 Update Travis CI build matrix to support PHP 5.4 to 7.4 2019-11-30 09:10:09 -08:00
Ben Ramsey 657add4b3c Fix mock invocation assertions 2019-11-30 09:10:09 -08:00
Ben Ramsey f19b700bd8 Clean up dependencies 2019-11-30 09:10:09 -08:00
Ben Ramsey ed9c494923 Add my username for GitHub Sponsors, pending acceptance to the beta 2019-11-30 09:10:09 -08:00
Ben Ramsey d0e9ca5bb6 Create FUNDING.yml 2019-11-30 09:10:09 -08:00
devrck bcf6c3d86b Use latest repo for coveralls, satooshi repo is abandoned 2019-11-30 09:10:09 -08:00
Ben Ramsey 6b5ba08f03 Add CodeTriage statement 2019-11-30 09:10:09 -08:00
Andrey Bolonin b715a258fa Update .travis.yml 2019-11-30 09:10:09 -08:00
Alessandro Minoccheri c4cc058f3d change array declarations 2019-11-30 09:10:09 -08:00
Ben Ramsey 2074056769 Remove unused tools scripts 2019-11-30 09:10:09 -08:00
Ben Ramsey 466629a399 Use a high-strength generator by default, when using RandomLibAdapter 2019-11-30 09:10:09 -08:00
Ben Ramsey 0cec25689d Update the changelog to follow the keepachangelog.com suggested format 2019-11-30 09:10:09 -08:00
Andreas Möller 59f7202226 Enhancement: Normalize composer.json 2019-11-30 09:10:09 -08:00
Martin Hujer bfc4afdf1f Tests: configure cacheDir for AspectMock 2019-11-30 09:10:09 -08:00
Martin Hujer f3e0fed2d7 Drop remnants of HHVM from tests
It was removed from Travis in c479cdd42f
2019-11-30 09:10:09 -08:00
Ben Ramsey 1b608e7e01 Remove test that fails because of qualified function call 2019-11-30 09:10:09 -08:00
karsasmus 2824db17c8 Change library ircmaxell/random-lib to paragonie/random-lib 2019-11-30 09:10:09 -08:00
Türkalp Burak KAYRANCIOĞLU c0183c581e PHP_OS predefined constant was used instead of php_uname() function. 2019-10-26 13:34:38 +03:00
Ben Ramsey 4c467ce4d5 Mark toString() method as deprecated, scheduled for removal in 4.0.0 2018-08-12 10:49:01 -05:00
Ben Ramsey 59c8bb0840 Update the deprecation messages 2018-08-12 09:43:21 -05:00
Ben Ramsey cd92bfa43c Mark SodiumRandomGenerator as deprecated 2018-08-11 21:30:34 -05:00
Ben Ramsey 7397e2f431 Mark MtRandGenerator and OpenSslGenerator as deprecated 2018-08-11 21:23:49 -05:00
Ben Ramsey 5d5eab97ee Add ext-json as a dependency 2018-08-05 16:59:04 -05:00
Ben Ramsey d09ea80159 Update CHANGELOG for the 3.8.0 release 3.8.0 2018-07-19 18:38:55 -05:00
Ben Ramsey 93a19b8133 Fix failing build due to coding standards violation 2018-07-19 17:19:38 -05:00
Ben Ramsey 8d621488c4 Check whether passthru() is disabled
If passthru() is disabled in php.ini, this will force the
SystemNodeProvider to return `false` for the node. Using the default
FallbackNodeProvider, ramsey/uuid will default to the
RandomNodeProvider, in these cases.

Closes #114
2018-07-19 16:53:00 -05:00
Ben Ramsey 735eb7e3c9 Add ext-ctype as a suggested extension 2018-07-19 15:48:43 -05:00
Ben Ramsey af6dcf6b93 Merge pull request #233 from localheinz/feature/sort-packages
Enhancement: Keep packages sorted in composer.json
2018-07-19 15:26:30 -05:00
Ben Ramsey 6616ec086c Merge pull request #232 from marcosh/master
add annotations for thrown exceptions
2018-07-19 15:24:41 -05:00
Ben Ramsey 76d4602795 Merge branch 'kalifg-SystemNodeProvider-FreeBSD-support' 2018-07-19 15:08:59 -05:00
Ben Ramsey b8cac9278c Merge branch 'SystemNodeProvider-FreeBSD-support' of https://github.com/kalifg/uuid into kalifg-SystemNodeProvider-FreeBSD-support 2018-07-19 15:08:45 -05:00
Andreas Möller cff5e11876 Enhancement: Keep packages sorted in composer.json 2018-07-19 14:48:23 +02:00
Marco Perone 4b7374129c add annotations for thrown exceptions 2018-07-09 09:04:12 +02:00
Ben Ramsey 8a8b1c0d2a Merge pull request #229 from simonwelsh/patch-1
Support random_compat v9.99.99
2018-07-01 20:36:14 -05:00
Simon Welsh e92ca19998 Support random_compat v9.99.99 2018-07-02 11:11:51 +10:00
Ben Ramsey 0c22388f0a Merge pull request #225 from lboynton/disallow-newlines
Don't allow UUIDs to have trailing newline
2018-07-01 15:17:46 -05:00
Ben Ramsey 526b329d74 Merge pull request #223 from BackEndTea/enhancement/ctype-compat
Add a polyfill for ctype
2018-07-01 15:11:32 -05:00
Lee Boynton 2804748423 Don't allow UUIDs to have trailing newline 2018-05-02 18:54:33 +01:00
Gert de Pagter 8d8766dc74 Use symfony version of ctype compat 2018-05-01 10:58:23 +02:00
Ben Ramsey 29fb62b486 Merge pull request #224 from peter279k/test_enhancement
Use class-based PHPUnit namespace
2018-04-25 15:14:32 -04:00
peter279k 8fab36d995 Use class-based PHPUnit namespace 2018-04-25 18:43:33 +08:00
Gert de Pagter a32a202301 Add a polyfil for ctype
This deals with #142 by adding a polyfil for the ctype functions
instead of failing an install.

The only downside for end users is that their version is slightly slower
if the run without ctype. But it does allow them to run it.
2018-04-23 18:30:10 +02:00