Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer(deps-dev): update mimmi20/coding-standard requirement from ^5.2.44 to ^5.2.45 #376

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"infection/infection": "^0.29.8",
"laminas/laminas-modulemanager": "^2.17.0",
"laminas/laminas-servicemanager": "^3.22.1",
"mimmi20/coding-standard": "^5.2.44",
"mimmi20/coding-standard": "^5.2.45",
"nikic/php-parser": "^5.3.1",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.12.9",
Expand Down
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
1 change: 1 addition & 0 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
1 change: 1 addition & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
1 change: 1 addition & 0 deletions src/StreamFormatter.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down Expand Up @@ -376,7 +377,7 @@
return (string) $data;
}

return $this->toJson($data, true);

Check warning on line 380 in src/StreamFormatter.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest)

Escaped Mutant for Mutator "TrueValue": @@ @@ if (is_scalar($data)) { return (string) $data; } - return $this->toJson($data, true); + return $this->toJson($data, false); } /** @throws void */ private function replaceNewlines(string $str): string

Check warning on line 380 in src/StreamFormatter.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest)

Escaped Mutant for Mutator "TrueValue": @@ @@ if (is_scalar($data)) { return (string) $data; } - return $this->toJson($data, true); + return $this->toJson($data, false); } /** @throws void */ private function replaceNewlines(string $str): string
}

/** @throws void */
Expand Down
1 change: 1 addition & 0 deletions src/StreamFormatterFactory.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down Expand Up @@ -49,7 +50,7 @@
$allowInlineLineBreaks = false;
$maxNormalizeDepth = self::DEFAULT_NORMALIZER_DEPTH;
$maxNormalizeItemCount = self::DEFAULT_NORMALIZER_ITEM_COUNT;
$prettyPrint = false;

Check warning on line 53 in src/StreamFormatterFactory.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest)

Escaped Mutant for Mutator "FalseValue": @@ @@ $allowInlineLineBreaks = false; $maxNormalizeDepth = self::DEFAULT_NORMALIZER_DEPTH; $maxNormalizeItemCount = self::DEFAULT_NORMALIZER_ITEM_COUNT; - $prettyPrint = false; + $prettyPrint = true; $includeStacktraces = false; if (is_array($options)) { if (array_key_exists('format', $options)) {

Check warning on line 53 in src/StreamFormatterFactory.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest)

Escaped Mutant for Mutator "FalseValue": @@ @@ $allowInlineLineBreaks = false; $maxNormalizeDepth = self::DEFAULT_NORMALIZER_DEPTH; $maxNormalizeItemCount = self::DEFAULT_NORMALIZER_ITEM_COUNT; - $prettyPrint = false; + $prettyPrint = true; $includeStacktraces = false; if (is_array($options)) { if (array_key_exists('format', $options)) {
$includeStacktraces = false;

if (is_array($options)) {
Expand Down Expand Up @@ -100,7 +101,7 @@

$formatter->setMaxNormalizeDepth($maxNormalizeDepth);
$formatter->setMaxNormalizeItemCount($maxNormalizeItemCount);
$formatter->setJsonPrettyPrint($prettyPrint);

Check warning on line 104 in src/StreamFormatterFactory.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $formatter = new StreamFormatter($output, new Table($output), $format, $tableStyle, $dateFormat, $allowInlineLineBreaks, $includeStacktraces); $formatter->setMaxNormalizeDepth($maxNormalizeDepth); $formatter->setMaxNormalizeItemCount($maxNormalizeItemCount); - $formatter->setJsonPrettyPrint($prettyPrint); + return $formatter; } }

Check warning on line 104 in src/StreamFormatterFactory.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $formatter = new StreamFormatter($output, new Table($output), $format, $tableStyle, $dateFormat, $allowInlineLineBreaks, $includeStacktraces); $formatter->setMaxNormalizeDepth($maxNormalizeDepth); $formatter->setMaxNormalizeItemCount($maxNormalizeItemCount); - $formatter->setJsonPrettyPrint($prettyPrint); + return $formatter; } }

return $formatter;
}
Expand Down
1 change: 1 addition & 0 deletions tests/ConfigProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
1 change: 1 addition & 0 deletions tests/ModuleTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
1 change: 1 addition & 0 deletions tests/StreamFormatterFactoryTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
1 change: 1 addition & 0 deletions tests/StreamFormatterTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of the mimmi20/monolog-streamformatter package.
*
Expand Down
Loading