diff --git a/.gitattributes b/.gitattributes index 6a31be5..f5446da 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,7 +2,7 @@ /tests export-ignore .gitattributes export-ignore .gitignore export-ignore -.php_cs export-ignore +.php-cs-fixer.php export-ignore Makefile export-ignore composer-require-checker.json export-ignore phpunit.xml export-ignore diff --git a/.gitignore b/.gitignore index 895d4da..a1c1776 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ vendor/ .idea/ -.php_cs.cache +.php-cs-fixer.cache .phpunit.result.cache composer.lock diff --git a/.php_cs b/.php-cs-fixer.php similarity index 100% rename from .php_cs rename to .php-cs-fixer.php diff --git a/composer.json b/composer.json index a160e3c..bbf4129 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,9 @@ "php": "^7.4 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^9.4.2", - "slam/php-cs-fixer-extensions": "^2.0.0" + "malukenho/mcbumpface": "^1.1.5", + "phpunit/phpunit": "^9.5.4", + "slam/php-cs-fixer-extensions": "^v3.0.1" }, "autoload": { "files": [ diff --git a/lib/r.php b/lib/r.php index 7eb5719..89c76b7 100644 --- a/lib/r.php +++ b/lib/r.php @@ -89,7 +89,8 @@ private static function formatDb(bool $fullstack, ?string $stripFromFullstack = } elseif (\is_bool($originalArgument)) { $argument .= ':' . ($originalArgument ? 'true' : 'false'); } elseif (\is_string($originalArgument)) { - $argument .= ':' . (isset($originalArgument[21]) + $argument .= ':' . ( + isset($originalArgument[21]) ? \strlen($originalArgument) . ':' . \substr($originalArgument, 0, 21) . '[...]' : $originalArgument );