mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-25 17:45:35 +03:00
Use correct phpcs configuration when running from Travis CI
This commit is contained in:
+2
-2
@@ -51,8 +51,8 @@ before_script:
|
||||
- mkdir -p build/logs
|
||||
|
||||
script:
|
||||
- ./resources/scripts/cmd-proxy.sh ./vendor/bin/parallel-lint src tests
|
||||
- ./resources/scripts/cmd-proxy.sh ./vendor/bin/phpcs src tests --standard=psr2 -sp --colors
|
||||
- ./resources/scripts/cmd-proxy.sh composer run lint
|
||||
- ./resources/scripts/cmd-proxy.sh composer run phpcs
|
||||
- ./resources/scripts/cmd-proxy.sh composer run phpstan
|
||||
- ./resources/scripts/cmd-proxy.sh composer run psalm
|
||||
- travis_wait ./resources/scripts/cmd-proxy.sh ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
|
||||
|
||||
+4
-2
@@ -14,6 +14,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Ramsey\Uuid;
|
||||
|
||||
use function is_int;
|
||||
|
||||
/**
|
||||
* Provides binary math utilities
|
||||
*/
|
||||
@@ -54,8 +56,8 @@ class BinaryUtils
|
||||
$timeHi = hexdec($timeHi) & 0x0fff;
|
||||
$timeHi |= $version << 12;
|
||||
|
||||
assert(\is_int($timeHi));
|
||||
|
||||
assert(is_int($timeHi));
|
||||
|
||||
return $timeHi;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -34,9 +34,9 @@ use Ramsey\Uuid\Exception\UnsupportedOperationException;
|
||||
* Note that `uuid1()` may compromise privacy since it creates a UUID containing
|
||||
* the computer’s network address. `uuid4()` creates a random UUID.
|
||||
*
|
||||
* @psalm-immutable
|
||||
*
|
||||
* @link http://tools.ietf.org/html/rfc4122 RFC 4122
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
class Uuid implements UuidInterface
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user