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): bump ergebnis/php-cs-fixer-config from 2.3.0 to 2.4.0 #376

Merged
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
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.

9 changes: 0 additions & 9 deletions src/Format/Indent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ public function __toString(): string
}

/**
* @param string $string
*
* @throws Exception\InvalidIndentStringException
*
* @return self
*/
public static function fromString(string $string): self
{
Expand All @@ -50,13 +46,8 @@ public static function fromString(string $string): self
}

/**
* @param int $size
* @param string $style
*
* @throws Exception\InvalidIndentSizeException
* @throws Exception\InvalidIndentStyleException
*
* @return self
*/
public static function fromSizeAndStyle(int $size, string $style): self
{
Expand Down
2 changes: 0 additions & 2 deletions src/Format/JsonEncodeOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ private function __construct(int $value)
}

/**
* @param int $value
*
* @throws Exception\InvalidJsonEncodeOptionsException
*
* @return JsonEncodeOptions
Expand Down
4 changes: 0 additions & 4 deletions src/Format/NewLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ public function __toString(): string
}

/**
* @param string $string
*
* @throws Exception\InvalidNewLineStringException
*
* @return self
*/
public static function fromString(string $string): self
{
Expand Down
10 changes: 0 additions & 10 deletions src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,14 @@ private function __construct(string $encoded, $decoded)

/**
* Returns the original JSON value.
*
* @return string
*/
public function __toString(): string
{
return $this->encoded;
}

/**
* @param string $encoded
*
* @throws Exception\InvalidJsonEncodedException
*
* @return self
*/
public static function fromEncoded(string $encoded): self
{
Expand Down Expand Up @@ -79,8 +73,6 @@ public function decoded()

/**
* Returns the original JSON value.
*
* @return string
*/
public function encoded(): string
{
Expand All @@ -89,8 +81,6 @@ public function encoded(): string

/**
* Returns the format of the original JSON value.
*
* @return Format\Format
*/
public function format(): Format\Format
{
Expand Down
4 changes: 0 additions & 4 deletions src/NormalizerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@
interface NormalizerInterface
{
/**
* @param Json $json
*
* @throws Exception\SchemaUriCouldNotBeResolvedException
* @throws Exception\SchemaUriCouldNotBeReadException
* @throws Exception\SchemaUriReferencesDocumentWithInvalidMediaTypeException
* @throws Exception\SchemaUriReferencesInvalidJsonDocumentException
* @throws Exception\OriginalInvalidAccordingToSchemaException
* @throws Exception\NormalizedInvalidAccordingToSchemaException
*
* @return Json
*/
public function normalize(Json $json): Json;
}
2 changes: 0 additions & 2 deletions src/SchemaNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public function normalize(Json $json): Json

/**
* @param null|array<mixed>|bool|float|int|\stdClass|string $data
* @param \stdClass $schema
*
* @throws \InvalidArgumentException
*
Expand All @@ -127,7 +126,6 @@ private function normalizeData($data, \stdClass $schema)

/**
* @param array<mixed> $data
* @param \stdClass $schema
*
* @return array<mixed>
*/
Expand Down
6 changes: 0 additions & 6 deletions src/Validator/SchemaValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ interface SchemaValidatorInterface
* @deprecated will be removed in 0.13.0
*
* @param null|array<mixed>|bool|float|int|\stdClass|string $data
* @param \stdClass $schema
*
* @return bool
*/
public function isValid($data, \stdClass $schema): bool;

/**
* @param null|array<mixed>|bool|float|int|\stdClass|string $data
* @param \stdClass $schema
*
* @return Result
*/
public function validate($data, \stdClass $schema): Result;
}
2 changes: 0 additions & 2 deletions test/Unit/FinalNewLineNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ final class FinalNewLineNormalizerTest extends AbstractNormalizerTestCase
{
/**
* @dataProvider \Ergebnis\Json\Normalizer\Test\DataProvider\Text::provideWhitespace()
*
* @param string $whitespace
*/
public function testNormalizeEnsuresSingleFinalNewLine(string $whitespace): void
{
Expand Down
10 changes: 0 additions & 10 deletions test/Unit/Format/FormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ final class FormatTest extends Framework\TestCase
{
/**
* @dataProvider \Ergebnis\Json\Normalizer\Test\DataProvider\Boolean::provideBoolean()
*
* @param bool $hasFinalNewLine
*/
public function testConstructorSetsValues(bool $hasFinalNewLine): void
{
Expand Down Expand Up @@ -109,8 +107,6 @@ public function testWithNewLineClonesFormatAndSetsNewLine(): void

/**
* @dataProvider \Ergebnis\Json\Normalizer\Test\DataProvider\Boolean::provideBoolean()
*
* @param bool $hasFinalNewLine
*/
public function testWithHasFinalNewLineClonesFormatAndSetsFinalNewLine(bool $hasFinalNewLine): void
{
Expand All @@ -129,8 +125,6 @@ public function testWithHasFinalNewLineClonesFormatAndSetsFinalNewLine(bool $has

/**
* @dataProvider providerEncodedWithoutIndent
*
* @param string $encoded
*/
public function testFromJsonReturnsFormatWithDefaultIndentIfJsonIsWithoutIndent(string $encoded): void
{
Expand Down Expand Up @@ -169,8 +163,6 @@ public function providerEncodedWithoutIndent(): \Generator

/**
* @dataProvider providerWhitespaceWithoutNewLine
*
* @param string $actualWhitespace
*/
public function testFromFormatReturnsFormatWithoutFinalNewLineIfThereIsNoFinalNewLine(string $actualWhitespace): void
{
Expand Down Expand Up @@ -214,8 +206,6 @@ public function providerWhitespaceWithoutNewLine(): \Generator

/**
* @dataProvider providerWhitespaceWithNewLine
*
* @param string $actualWhitespace
*/
public function testFromFormatReturnsFormatWithFinalNewLineIfThereIsAtLeastOneFinalNewLine(string $actualWhitespace): void
{
Expand Down
2 changes: 0 additions & 2 deletions test/Unit/Format/FormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public function testImplementsFormatterInterface(): void

/**
* @dataProvider \Ergebnis\Json\Normalizer\Test\DataProvider\Boolean::provideBoolean()
*
* @param bool $hasFinalNewLine
*/
public function testFormatEncodesWithJsonEncodeOptionsIndentsAndPossiblySuffixesWithFinalNewLine(bool $hasFinalNewLine): void
{
Expand Down
Loading