Skip to content

Commit

Permalink
misc: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Aug 7, 2023
1 parent 7824083 commit c31e5c9
Show file tree
Hide file tree
Showing 13 changed files with 206 additions and 334 deletions.
5 changes: 1 addition & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
])
->notPath('Fixtures/FunctionWithGroupedImportStatements.php')
->notPath('Fixtures/FunctionWithSeveralImportStatementsInSameUseStatement.php')
->notPath('Fixtures/TwoClassesInDifferentNamespaces.php')
// PHP8.2 remove when PHP-CS-Fixer fully supports PHP 8.2; also remove
// `@putenv PHP_CS_FIXER_IGNORE_ENV=1` inside `composer.json`
->notPath('Fixture/Object/ObjectWithPropertyWithNativeDisjunctiveNormalFormType.php');
->notPath('Fixtures/TwoClassesInDifferentNamespaces.php');

if (PHP_VERSION_ID < 8_01_00) {
$finder = $finder->notPath('Fixture/Enum/PureEnum.php');
Expand Down
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"psalm --config=tests/StaticAnalysis/psalm-with-plugin.xml",
"phpstan --configuration=tests/StaticAnalysis/phpstan-without-extension.neon.dist",
"phpstan --configuration=tests/StaticAnalysis/phpstan-with-extension.neon.dist",
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"php-cs-fixer fix --dry-run",
"rector --dry-run",
"@check-todo"
Expand All @@ -61,7 +60,6 @@
],
"fix": [
"@putenv XDEBUG_MODE=off",
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"php-cs-fixer fix",
"rector"
],
Expand Down
476 changes: 195 additions & 281 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/Mapper/Tree/Message/ErrorMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Throwable;

/** @api */
interface ErrorMessage extends Message, Throwable
{
}
interface ErrorMessage extends Message, Throwable {}
4 changes: 1 addition & 3 deletions src/Type/ClassType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
namespace CuyZ\Valinor\Type;

/** @internal */
interface ClassType extends ObjectType
{
}
interface ClassType extends ObjectType {}
4 changes: 1 addition & 3 deletions src/Type/Parser/Exception/InvalidType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Throwable;

/** @internal */
interface InvalidType extends Throwable
{
}
interface InvalidType extends Throwable {}
4 changes: 1 addition & 3 deletions src/Type/Parser/Exception/Template/InvalidTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Throwable;

/** @internal */
interface InvalidTemplate extends Throwable
{
}
interface InvalidTemplate extends Throwable {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace CuyZ\Valinor\Tests\Fixture\Object\InterfaceWithDifferentNamespaces;

interface InterfaceA
{
}
interface InterfaceA {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace CuyZ\Valinor\Tests\Fixture\Object\InterfaceWithDifferentNamespaces;

interface InterfaceB
{
}
interface InterfaceB {}
4 changes: 1 addition & 3 deletions tests/Integration/Cache/CacheWarmupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ public function test_warmup_invalid_signature_throws_exception(): void
}
}

interface SomeInterface
{
}
interface SomeInterface {}

final class ObjectToWarmupWithProperties implements SomeInterface
{
Expand Down
4 changes: 1 addition & 3 deletions tests/Integration/Mapping/InterfaceInferringMappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,7 @@ public function test_superfluous_values_throws_exception(): void
}
}

interface SomeInterface
{
}
interface SomeInterface {}

final class SomeClassThatInheritsInterfaceA implements SomeInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,11 @@ public function test_source_value_is_casted_when_other_type_cannot_be_casted():
}
}

interface SomeInterfaceForClassWithNoProperties
{
}
interface SomeInterfaceForClassWithNoProperties {}

final class SomeClassWithNoProperties implements SomeInterfaceForClassWithNoProperties {}

interface SomeInterfaceForClassWithProperties
{
}
interface SomeInterfaceForClassWithProperties {}

final class SomeClassWithProperties implements SomeInterfaceForClassWithProperties
{
Expand Down
17 changes: 0 additions & 17 deletions tests/Integration/Mapping/VariadicParameterMappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,6 @@ public function test_named_constructor_with_only_variadic_parameters_are_mapped_
self::assertSame(['foo', 'bar', 'baz'], $object->values);
}

// public function test_variadic_list_parameters_are_mapped_properly_when_string_keys_are_given(): void
// {
// try {
// $object = (new MapperBuilder())->flexible()->mapper()->map(SomeClassWithListVariadicParameters::class, [
// 'values' => [
// 'foo' => 'foo',
// 'bar' => 'bar',
// 'baz' => 'baz',
// ],
// ]);
// } catch (MappingError $error) {
// $this->mappingFail($error);
// }
//
// self::assertSame(['foo', 'bar', 'baz'], $object->values);
// }

public function test_non_variadic_and_variadic_parameters_are_mapped_properly(): void
{
try {
Expand Down

0 comments on commit c31e5c9

Please sign in to comment.