Use correct phpcs configuration when running from Travis CI

This commit is contained in:
Ben Ramsey
2020-01-02 13:01:22 -06:00
parent ffc400e009
commit c0a2ef7d15
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -34,9 +34,9 @@ use Ramsey\Uuid\Exception\UnsupportedOperationException;
* Note that `uuid1()` may compromise privacy since it creates a UUID containing
* the computers network address. `uuid4()` creates a random UUID.
*
* @psalm-immutable
*
* @link http://tools.ietf.org/html/rfc4122 RFC 4122
*
* @psalm-immutable
*/
class Uuid implements UuidInterface
{