Skip to content

Commit

Permalink
Merge pull request #238 from ergebnis/dependabot/composer/ergebnis/ph…
Browse files Browse the repository at this point in the history
…p-cs-fixer-config-2.4.0

composer(deps-dev): bump ergebnis/php-cs-fixer-config from 2.3.0 to 2.4.0
  • Loading branch information
ergebnis-bot committed Oct 23, 2020
2 parents 5fa2797 + a9d7371 commit 5642005
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 46 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require-dev": {
"ergebnis/license": "^1.1.0",
"ergebnis/php-cs-fixer-config": "^2.3.0",
"ergebnis/php-cs-fixer-config": "^2.4.0",
"ergebnis/phpstan-rules": "~0.15.2",
"ergebnis/test-util": "^1.3.0",
"infection/infection": "~0.15.3",
Expand Down
50 changes: 25 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ final class Printer implements PrinterInterface
* @see http://php.net/manual/en/function.json-encode.php
* @see http://php.net/manual/en/json.constants.php
*
* @param string $json
* @param string $indent
* @param string $newLine
*
* @throws \InvalidArgumentException
*
* @return string
*/
public function print(string $json, string $indent = ' ', string $newLine = \PHP_EOL): string
{
Expand Down
6 changes: 0 additions & 6 deletions src/PrinterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@
interface PrinterInterface
{
/**
* @param string $json
* @param string $indent
* @param string $newLine
*
* @throws \InvalidArgumentException
*
* @return string
*/
public function print(string $json, string $indent = ' ', string $newLine = \PHP_EOL): string;
}
8 changes: 0 additions & 8 deletions test/Unit/PrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public function testPrintRejectsInvalidJson(): void

/**
* @dataProvider providerInvalidIndent
*
* @param string $indent
*/
public function testPrintRejectsInvalidIndent(string $indent): void
{
Expand Down Expand Up @@ -89,8 +87,6 @@ public function providerInvalidIndent(): \Generator

/**
* @dataProvider providerInvalidNewLine
*
* @param string $newLine
*/
public function testPrintRejectsInvalidNewLine(string $newLine): void
{
Expand Down Expand Up @@ -190,8 +186,6 @@ public function testPrintPrintsPrettyWithIndent(): void

/**
* @dataProvider providerNewLine
*
* @param string $newLine
*/
public function testPrintPrintsPrettyWithIndentAndNewLine(string $newLine): void
{
Expand Down Expand Up @@ -231,8 +225,6 @@ public function testPrintPrintsPrettyWithIndentAndNewLine(string $newLine): void

/**
* @see https://nikic.github.io/2011/12/10/PCRE-and-newlines.html
*
* @return \Generator
*/
public function providerNewLine(): \Generator
{
Expand Down

0 comments on commit 5642005

Please sign in to comment.