Skip to content

Commit

Permalink
misc: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Jun 9, 2023
1 parent 5e9b4ce commit 5fa1076
Show file tree
Hide file tree
Showing 110 changed files with 413 additions and 643 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
'no_unused_imports' => true,
'no_extra_blank_lines' => true,
'no_empty_phpdoc' => true,
'single_line_empty_body' => true,
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'remove_inheritdoc' => true,
Expand Down
510 changes: 254 additions & 256 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions qa/PHPStan/Extension/TreeMapperPHPStanExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

final class TreeMapperPHPStanExtension implements DynamicMethodReturnTypeExtension
{
public function __construct(private TypeStringResolver $resolver)
{
}
public function __construct(private TypeStringResolver $resolver) {}

public function getClass(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Cache/Compiled/CompiledPhpFileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ final class CompiledPhpFileCache implements CacheInterface
public function __construct(
private string $cacheDir,
private CacheCompiler $compiler
) {
}
) {}

public function has($key): bool
{
Expand Down
3 changes: 1 addition & 2 deletions src/Cache/FileWatchingCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ final class FileWatchingCache implements CacheInterface
public function __construct(
/** @var CacheInterface<EntryType|TimestampsArray> */
private CacheInterface $delegate
) {
}
) {}

public function has($key): bool
{
Expand Down
3 changes: 1 addition & 2 deletions src/Cache/Warmup/RecursiveCacheWarmupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public function __construct(
private ObjectImplementations $implementations,
private ClassDefinitionRepository $classDefinitionRepository,
private ObjectBuilderFactory $objectBuilderFactory
) {
}
) {}

public function warmup(string ...$signatures): void
{
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/ClassDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
private Methods $methods,
private bool $isFinal,
private bool $isAbstract,
) {
}
) {}

/**
* @return class-string
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/FunctionDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
private bool $isClosure,
private Parameters $parameters,
private Type $returnType
) {
}
) {}

public function name(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/FunctionsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function __construct(
private FunctionDefinitionRepository $functionDefinitionRepository,
/** @var array<callable> */
private array $callables
) {
}
) {}

public function has(string|int $key): bool
{
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/MethodDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
private bool $isStatic,
private bool $isPublic,
private Type $returnType
) {
}
) {}

public function name(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/ParameterDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
private bool $isVariadic,
private mixed $defaultValue,
private Attributes $attributes
) {
}
) {}

public function name(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/PropertyDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
private mixed $defaultValue,
private bool $isPublic,
private Attributes $attributes
) {
}
) {}

public function name(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
private ClassDefinitionRepository $delegate,
/** @var CacheInterface<ClassDefinition> */
private CacheInterface $cache
) {
}
) {}

public function for(ClassType $type): ClassDefinition
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
private FunctionDefinitionRepository $delegate,
/** @var CacheInterface<FunctionDefinition> */
private CacheInterface $cache
) {
}
) {}

public function for(callable $function): FunctionDefinition
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ final class ParameterDefinitionCompiler
public function __construct(
private TypeCompiler $typeCompiler,
private AttributesCompiler $attributesCompiler
) {
}
) {}

public function compile(ParameterDefinition $parameter): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ final class PropertyDefinitionCompiler
public function __construct(
private TypeCompiler $typeCompiler,
private AttributesCompiler $attributesCompiler
) {
}
) {}

public function compile(PropertyDefinition $property): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
/** @internal */
final class ReflectionParameterDefinitionBuilder
{
public function __construct(private AttributesRepository $attributesFactory)
{
}
public function __construct(private AttributesRepository $attributesFactory) {}

public function for(ReflectionParameter $reflection, ReflectionTypeResolver $typeResolver): ParameterDefinition
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
/** @internal */
final class ReflectionPropertyDefinitionBuilder
{
public function __construct(private AttributesRepository $attributesRepository)
{
}
public function __construct(private AttributesRepository $attributesRepository) {}

public function for(ReflectionProperty $reflection, ReflectionTypeResolver $typeResolver): PropertyDefinition
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ final class ReflectionTypeResolver
public function __construct(
private TypeParser $nativeParser,
private TypeParser $advancedParser
) {
}
) {}

public function resolveType(\ReflectionProperty|\ReflectionParameter|\ReflectionFunctionAbstract $reflection): Type
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Object/DynamicConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,4 @@
* @api
*/
#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)]
final class DynamicConstructor
{
}
final class DynamicConstructor {}
3 changes: 1 addition & 2 deletions src/Mapper/Object/Factory/CacheObjectBuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public function __construct(
private ObjectBuilderFactory $delegate,
/** @var CacheInterface<list<ObjectBuilder>> */
private CacheInterface $cache
) {
}
) {}

public function for(ClassDefinition $class): array
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Object/Factory/CollisionObjectBuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
/** @internal */
final class CollisionObjectBuilderFactory implements ObjectBuilderFactory
{
public function __construct(private ObjectBuilderFactory $delegate)
{
}
public function __construct(private ObjectBuilderFactory $delegate) {}

public function for(ClassDefinition $class): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public function __construct(
/** @var array<class-string, null> */
private array $nativeConstructors,
private FunctionsContainer $constructors
) {
}
) {}

public function for(ClassDefinition $class): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Mapper/Object/Factory/DateTimeObjectBuilderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ final class DateTimeObjectBuilderFactory implements ObjectBuilderFactory
public function __construct(
private ObjectBuilderFactory $delegate,
private FunctionDefinitionRepository $functionDefinitionRepository
) {
}
) {}

public function for(ClassDefinition $class): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
/** @internal */
final class StrictTypesObjectBuilderFactory implements ObjectBuilderFactory
{
public function __construct(private ObjectBuilderFactory $delegate)
{
}
public function __construct(private ObjectBuilderFactory $delegate) {}

public function for(ClassDefinition $class): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Mapper/Object/MethodObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
private string $className,
private string $methodName,
private Parameters $parameters
) {
}
) {}

public function describeArguments(): Arguments
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Object/NativeConstructorObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ final class NativeConstructorObjectBuilder implements ObjectBuilder
{
private Arguments $arguments;

public function __construct(private ClassDefinition $class)
{
}
public function __construct(private ClassDefinition $class) {}

public function describeArguments(): Arguments
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Object/ReflectionObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ final class ReflectionObjectBuilder implements ObjectBuilder
{
private Arguments $arguments;

public function __construct(private ClassDefinition $class)
{
}
public function __construct(private ClassDefinition $class) {}

public function describeArguments(): Arguments
{
Expand Down
3 changes: 1 addition & 2 deletions src/Mapper/Source/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ final class Source implements IteratorAggregate
private function __construct(
/** @var iterable<mixed> */
private iterable $delegate
) {
}
) {}

/**
* @param iterable<mixed> $data
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/ArrayNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
/** @internal */
final class ArrayNodeBuilder implements NodeBuilder
{
public function __construct(private bool $enableFlexibleCasting)
{
}
public function __construct(private bool $enableFlexibleCasting) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
3 changes: 1 addition & 2 deletions src/Mapper/Tree/Builder/CasterNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class CasterNodeBuilder implements NodeBuilder
public function __construct(
/** @var array<class-string, NodeBuilder> */
private array $builders
) {
}
) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
/** @internal */
final class CasterProxyNodeBuilder implements NodeBuilder
{
public function __construct(private NodeBuilder $delegate)
{
}
public function __construct(private NodeBuilder $delegate) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
3 changes: 1 addition & 2 deletions src/Mapper/Tree/Builder/InterfaceNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public function __construct(
private ObjectBuilderFactory $objectBuilderFactory,
private ObjectNodeBuilder $objectNodeBuilder,
private bool $enableFlexibleCasting
) {
}
) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/IterableNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
/** @internal */
final class IterableNodeBuilder implements NodeBuilder
{
public function __construct(private NodeBuilder $delegate)
{
}
public function __construct(private NodeBuilder $delegate) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/ListNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
/** @internal */
final class ListNodeBuilder implements NodeBuilder
{
public function __construct(private bool $enableFlexibleCasting)
{
}
public function __construct(private bool $enableFlexibleCasting) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
3 changes: 1 addition & 2 deletions src/Mapper/Tree/Builder/NativeClassNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
private ObjectBuilderFactory $objectBuilderFactory,
private ObjectNodeBuilder $objectNodeBuilder,
private bool $enableFlexibleCasting,
) {
}
) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/ObjectNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
/** @internal */
final class ObjectNodeBuilder
{
public function __construct(private bool $allowSuperfluousKeys)
{
}
public function __construct(private bool $allowSuperfluousKeys) {}

public function build(ObjectBuilder $builder, Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/RootNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
/** @internal */
final class RootNodeBuilder
{
public function __construct(private NodeBuilder $root)
{
}
public function __construct(private NodeBuilder $root) {}

public function build(Shell $shell): TreeNode
{
Expand Down
4 changes: 1 addition & 3 deletions src/Mapper/Tree/Builder/ScalarNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
/** @internal */
final class ScalarNodeBuilder implements NodeBuilder
{
public function __construct(private bool $enableFlexibleCasting)
{
}
public function __construct(private bool $enableFlexibleCasting) {}

public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
{
Expand Down
Loading

0 comments on commit 5fa1076

Please sign in to comment.