From 5fa1076e11d86e9f057ed58bd1d8c4a7d38580c3 Mon Sep 17 00:00:00 2001 From: Romain Canon Date: Fri, 9 Jun 2023 18:18:27 +0200 Subject: [PATCH] misc: update dependencies --- .php-cs-fixer.dist.php | 1 + composer.lock | 510 +++++++++--------- .../Extension/TreeMapperPHPStanExtension.php | 4 +- src/Cache/Compiled/CompiledPhpFileCache.php | 3 +- src/Cache/FileWatchingCache.php | 3 +- .../Warmup/RecursiveCacheWarmupService.php | 3 +- src/Definition/ClassDefinition.php | 3 +- src/Definition/FunctionDefinition.php | 3 +- src/Definition/FunctionsContainer.php | 3 +- src/Definition/MethodDefinition.php | 3 +- src/Definition/ParameterDefinition.php | 3 +- src/Definition/PropertyDefinition.php | 3 +- .../Cache/CacheClassDefinitionRepository.php | 3 +- .../CacheFunctionDefinitionRepository.php | 3 +- .../Compiler/ParameterDefinitionCompiler.php | 3 +- .../Compiler/PropertyDefinitionCompiler.php | 3 +- .../ReflectionParameterDefinitionBuilder.php | 4 +- .../ReflectionPropertyDefinitionBuilder.php | 4 +- .../Reflection/ReflectionTypeResolver.php | 3 +- src/Mapper/Object/DynamicConstructor.php | 4 +- .../Factory/CacheObjectBuilderFactory.php | 3 +- .../Factory/CollisionObjectBuilderFactory.php | 4 +- .../ConstructorObjectBuilderFactory.php | 3 +- .../Factory/DateTimeObjectBuilderFactory.php | 3 +- .../StrictTypesObjectBuilderFactory.php | 4 +- src/Mapper/Object/MethodObjectBuilder.php | 3 +- .../Object/NativeConstructorObjectBuilder.php | 4 +- src/Mapper/Object/ReflectionObjectBuilder.php | 4 +- src/Mapper/Source/Source.php | 3 +- src/Mapper/Tree/Builder/ArrayNodeBuilder.php | 4 +- src/Mapper/Tree/Builder/CasterNodeBuilder.php | 3 +- .../Tree/Builder/CasterProxyNodeBuilder.php | 4 +- .../Tree/Builder/InterfaceNodeBuilder.php | 3 +- .../Tree/Builder/IterableNodeBuilder.php | 4 +- src/Mapper/Tree/Builder/ListNodeBuilder.php | 4 +- .../Tree/Builder/NativeClassNodeBuilder.php | 3 +- src/Mapper/Tree/Builder/ObjectNodeBuilder.php | 4 +- src/Mapper/Tree/Builder/RootNodeBuilder.php | 4 +- src/Mapper/Tree/Builder/ScalarNodeBuilder.php | 4 +- .../Tree/Builder/ShapedArrayNodeBuilder.php | 4 +- src/Mapper/Tree/Builder/StrictNodeBuilder.php | 3 +- src/Mapper/Tree/Builder/UnionNodeBuilder.php | 3 +- .../Tree/Builder/ValueAlteringNodeBuilder.php | 3 +- .../Formatter/LocaleMessageFormatter.php | 4 +- .../Message/Formatter/MessageMapFormatter.php | 3 +- src/Mapper/Tree/Message/MessageBuilder.php | 12 +- src/Mapper/TypeTreeMapper.php | 3 +- src/Type/Parser/CachedParser.php | 4 +- .../Factory/LexingTypeParserFactory.php | 4 +- .../Specifications/AliasSpecification.php | 3 +- .../ClassContextSpecification.php | 3 +- .../TypeAliasAssignerSpecification.php | 3 +- src/Type/Parser/Lexer/AdvancedClassLexer.php | 3 +- src/Type/Parser/Lexer/AliasLexer.php | 3 +- .../Lexer/Token/AdvancedClassNameToken.php | 3 +- src/Type/Parser/Lexer/Token/ArrayToken.php | 3 +- src/Type/Parser/Lexer/Token/CaseFinder.php | 3 +- src/Type/Parser/Lexer/Token/EnumNameToken.php | 3 +- .../Parser/Lexer/Token/FloatValueToken.php | 4 +- .../Parser/Lexer/Token/IntegerValueToken.php | 4 +- src/Type/Parser/Lexer/Token/ListToken.php | 3 +- src/Type/Parser/Lexer/Token/NativeToken.php | 3 +- src/Type/Parser/Lexer/Token/QuoteToken.php | 4 +- src/Type/Parser/Lexer/Token/TypeToken.php | 3 +- .../Parser/Lexer/Token/UnknownSymbolToken.php | 4 +- src/Type/Parser/Lexer/TypeAliasLexer.php | 3 +- src/Type/Parser/LexingParser.php | 4 +- src/Type/Types/BooleanValueType.php | 4 +- src/Type/Types/FloatValueType.php | 4 +- src/Type/Types/IntegerValueType.php | 4 +- src/Type/Types/InterfaceType.php | 3 +- src/Type/Types/ShapedArrayElement.php | 3 +- src/Type/Types/StringValueType.php | 4 +- tests/Fake/Definition/FakeClassDefinition.php | 4 +- .../Fake/Definition/FakeMethodDefinition.php | 4 +- .../Definition/FakeParameterDefinition.php | 4 +- .../Definition/FakePropertyDefinition.php | 4 +- .../Mapper/Source/FakeIdentifiableSource.php | 4 +- .../Fake/Mapper/Tree/Message/FakeMessage.php | 4 +- tests/Fake/Type/FakeFixedType.php | 4 +- tests/Fake/Type/FakeObjectCompositeType.php | 3 +- tests/Fake/Type/FakeObjectType.php | 4 +- tests/Fake/Type/Parser/FakeTypeParser.php | 2 +- .../Attribute/AttributeWithArguments.php | 3 +- tests/Fixture/Attribute/BasicAttribute.php | 4 +- tests/Fixture/Attribute/NestedAttribute.php | 3 +- .../Attribute/PropertyTargetAttribute.php | 4 +- tests/Fixture/Object/AbstractObject.php | 4 +- tests/Fixture/Object/ObjectWithAttributes.php | 8 +- .../Object/ObjectWithNestedAttributes.php | 4 +- tests/Fixture/Object/StringableObject.php | 4 +- .../Cache/Compiler/AttributesCompilerTest.php | 2 +- .../Compiler/ClassDefinitionCompilerTest.php | 8 +- .../Type/Parser/Lexer/GenericLexerTest.php | 36 +- tests/Integration/Cache/CacheWarmupTest.php | 40 +- .../ConstructorRegistrationMappingTest.php | 24 +- .../Mapping/Fixture/DateInterval.php | 4 +- .../Mapping/InterfaceInferringMappingTest.php | 4 +- .../Mapping/Object/GenericInheritanceTest.php | 4 +- .../Other/FlexibleCastingMappingTest.php | 4 +- .../Unit/Definition/NativeAttributesTest.php | 4 +- ...eflectionClassDefinitionRepositoryTest.php | 31 +- .../NativeConstructorObjectBuilderTest.php | 8 +- .../Type/Types/UndefinedObjectTypeTest.php | 2 +- .../Utility/Priority/PrioritizedListTest.php | 4 +- .../Fixtures/ClassInSingleNamespace.php | 3 +- .../Fixtures/FunctionInRootNamespace.php | 3 +- .../Reflection/Fixtures/SubDir/Bar.php | 4 +- .../Reflection/Fixtures/SubDir/Foo.php | 4 +- .../Utility/Reflection/ReflectionTest.php | 35 +- 110 files changed, 413 insertions(+), 643 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 2b1dd3f3..e6e2e357 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -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, diff --git a/composer.lock b/composer.lock index 0c626ac6..6018bbd4 100644 --- a/composer.lock +++ b/composer.lock @@ -316,79 +316,6 @@ ], "time": "2022-12-27T16:44:40+00:00" }, - { - "name": "composer/package-versions-deprecated", - "version": "1.11.99.5", - "source": { - "type": "git", - "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d", - "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^1.1.0 || ^2.0", - "php": "^7 || ^8" - }, - "replace": { - "ocramius/package-versions": "1.11.99" - }, - "require-dev": { - "composer/composer": "^1.9.3 || ^2.0@dev", - "ext-zip": "^1.13", - "phpunit/phpunit": "^6.5 || ^7" - }, - "type": "composer-plugin", - "extra": { - "class": "PackageVersions\\Installer", - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "PackageVersions\\": "src/PackageVersions" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com" - }, - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be" - } - ], - "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", - "support": { - "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2022-01-17T14:14:24+00:00" - }, { "name": "composer/pcre", "version": "3.1.0", @@ -722,25 +649,29 @@ }, { "name": "doctrine/deprecations", - "version": "v1.0.0", + "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", + "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", "shasum": "" }, "require": { - "php": "^7.1|^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "doctrine/coding-standard": "^9", - "phpunit/phpunit": "^7.5|^8.5|^9.5", - "psr/log": "^1|^2|^3" + "phpstan/phpstan": "1.4.10 || 1.10.15", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psalm/plugin-phpunit": "0.18.4", + "psr/log": "^1 || ^2 || ^3", + "vimeo/psalm": "4.30.0 || 5.12.0" }, "suggest": { "psr/log": "Allows logging deprecations via PSR-3 logger implementation" @@ -759,9 +690,9 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" + "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" }, - "time": "2022-05-02T15:47:09+00:00" + "time": "2023-06-03T09:27:29+00:00" }, { "name": "doctrine/instantiator", @@ -1075,16 +1006,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.14.4", + "version": "v3.17.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "1b3d9dba63d93b8a202c31e824748218781eae6b" + "reference": "3f0ed862f22386c55a767461ef5083bddceeed79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/1b3d9dba63d93b8a202c31e824748218781eae6b", - "reference": "1b3d9dba63d93b8a202c31e824748218781eae6b", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/3f0ed862f22386c55a767461ef5083bddceeed79", + "reference": "3f0ed862f22386c55a767461ef5083bddceeed79", "shasum": "" }, "require": { @@ -1151,9 +1082,15 @@ } ], "description": "A tool to automatically fix PHP code style", + "keywords": [ + "Static code analysis", + "fixer", + "standards", + "static analysis" + ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.14.4" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.17.0" }, "funding": [ { @@ -1161,7 +1098,7 @@ "type": "github" } ], - "time": "2023-02-09T21:49:13+00:00" + "time": "2023-05-22T19:59:32+00:00" }, { "name": "infection/abstract-testframework-adapter", @@ -1540,16 +1477,16 @@ }, { "name": "marcocesarato/php-conventional-changelog", - "version": "1.16.0", + "version": "1.17.0", "source": { "type": "git", "url": "https://github.com/marcocesarato/php-conventional-changelog.git", - "reference": "d901533416515d4f5eaf842ca72130e07bf0834d" + "reference": "9269b0a3198d2107322f9f9a0fca399719825f67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/marcocesarato/php-conventional-changelog/zipball/d901533416515d4f5eaf842ca72130e07bf0834d", - "reference": "d901533416515d4f5eaf842ca72130e07bf0834d", + "url": "https://api.github.com/repos/marcocesarato/php-conventional-changelog/zipball/9269b0a3198d2107322f9f9a0fca399719825f67", + "reference": "9269b0a3198d2107322f9f9a0fca399719825f67", "shasum": "" }, "require": { @@ -1562,7 +1499,7 @@ "friendsofphp/php-cs-fixer": "^3.8", "php-mock/php-mock": "^2.3", "php-mock/php-mock-phpunit": "^2.6", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.6" }, "bin": [ "conventional-changelog" @@ -1611,9 +1548,9 @@ ], "support": { "issues": "https://github.com/marcocesarato/php-conventional-changelog/issues", - "source": "https://github.com/marcocesarato/php-conventional-changelog/tree/v1.16.0" + "source": "https://github.com/marcocesarato/php-conventional-changelog/tree/v1.17.0" }, - "time": "2022-11-26T10:26:38+00:00" + "time": "2023-03-26T16:59:30+00:00" }, { "name": "mikey179/vfsstream", @@ -1668,16 +1605,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.11.0", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", "shasum": "" }, "require": { @@ -1715,7 +1652,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" }, "funding": [ { @@ -1723,20 +1660,20 @@ "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2023-03-08T13:26:56+00:00" }, { "name": "netresearch/jsonmapper", - "version": "v4.1.0", + "version": "v4.2.0", "source": { "type": "git", "url": "https://github.com/cweiske/jsonmapper.git", - "reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f" + "reference": "f60565f8c0566a31acf06884cdaa591867ecc956" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/cfa81ea1d35294d64adb9c68aa4cb9e92400e53f", - "reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f", + "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/f60565f8c0566a31acf06884cdaa591867ecc956", + "reference": "f60565f8c0566a31acf06884cdaa591867ecc956", "shasum": "" }, "require": { @@ -1772,22 +1709,22 @@ "support": { "email": "cweiske@cweiske.de", "issues": "https://github.com/cweiske/jsonmapper/issues", - "source": "https://github.com/cweiske/jsonmapper/tree/v4.1.0" + "source": "https://github.com/cweiske/jsonmapper/tree/v4.2.0" }, - "time": "2022-12-08T20:46:14+00:00" + "time": "2023-04-09T17:37:40+00:00" }, { "name": "nikic/php-parser", - "version": "v4.15.3", + "version": "v4.15.5", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039" + "reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039", - "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/11e2663a5bc9db5d714eedb4277ee300403b4a9e", + "reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e", "shasum": "" }, "require": { @@ -1828,9 +1765,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.5" }, - "time": "2023-01-16T22:05:37+00:00" + "time": "2023-05-19T20:20:00+00:00" }, { "name": "ondram/ci-detector", @@ -2133,24 +2070,27 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.2", + "version": "1.7.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d" + "reference": "b2fe4d22a5426f38e014855322200b97b5362c0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/48f445a408c131e38cab1c235aa6d2bb7a0bb20d", - "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b2fe4d22a5426f38e014855322200b97b5362c0d", + "reference": "b2fe4d22a5426f38e014855322200b97b5362c0d", "shasum": "" }, "require": { + "doctrine/deprecations": "^1.0", "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" + "phpdocumentor/reflection-common": "^2.0", + "phpstan/phpdoc-parser": "^1.13" }, "require-dev": { "ext-tokenizer": "*", + "phpbench/phpbench": "^1.2", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.8", "phpstan/phpstan-phpunit": "^1.1", @@ -2182,22 +2122,69 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.2" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.2" + }, + "time": "2023-05-30T18:13:47+00:00" + }, + { + "name": "phpstan/phpdoc-parser", + "version": "1.22.0", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "ec58baf7b3c7f1c81b3b00617c953249fb8cf30c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ec58baf7b3c7f1c81b3b00617c953249fb8cf30c", + "reference": "ec58baf7b3c7f1c81b3b00617c953249fb8cf30c", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^4.15", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^9.5", + "symfony/process": "^5.2" }, - "time": "2022-10-14T12:47:21+00:00" + "type": "library", + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.22.0" + }, + "time": "2023-06-01T12:35:21+00:00" }, { "name": "phpstan/phpstan", - "version": "1.9.17", + "version": "1.10.16", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "204e459e7822f2c586463029f5ecec31bb45a1f2" + "reference": "352bdbb960bb523e3d71b834862589f910921c23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/204e459e7822f2c586463029f5ecec31bb45a1f2", - "reference": "204e459e7822f2c586463029f5ecec31bb45a1f2", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/352bdbb960bb523e3d71b834862589f910921c23", + "reference": "352bdbb960bb523e3d71b834862589f910921c23", "shasum": "" }, "require": { @@ -2226,8 +2213,11 @@ "static analysis" ], "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.9.17" + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" }, "funding": [ { @@ -2243,25 +2233,25 @@ "type": "tidelift" } ], - "time": "2023-02-08T12:25:00+00:00" + "time": "2023-06-05T08:21:46+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "1.3.4", + "version": "1.3.13", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "d77af96c1aaec28f7c0293677132eaaad079e01b" + "reference": "d8bdab0218c5eb0964338d24a8511b65e9c94fa5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/d77af96c1aaec28f7c0293677132eaaad079e01b", - "reference": "d77af96c1aaec28f7c0293677132eaaad079e01b", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/d8bdab0218c5eb0964338d24a8511b65e9c94fa5", + "reference": "d8bdab0218c5eb0964338d24a8511b65e9c94fa5", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.9.3" + "phpstan/phpstan": "^1.10" }, "conflict": { "phpunit/phpunit": "<7.0" @@ -2293,31 +2283,32 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.4" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.13" }, - "time": "2023-02-09T08:05:29+00:00" + "time": "2023-05-26T11:05:59+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "1.4.5", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "361f75b06066f3fdaba87c1f57bdb1ffc28d6f1d" + "reference": "b21c03d4f6f3a446e4311155f4be9d65048218e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/361f75b06066f3fdaba87c1f57bdb1ffc28d6f1d", - "reference": "361f75b06066f3fdaba87c1f57bdb1ffc28d6f1d", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/b21c03d4f6f3a446e4311155f4be9d65048218e6", + "reference": "b21c03d4f6f3a446e4311155f4be9d65048218e6", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.9.7" + "phpstan/phpstan": "^1.10" }, "require-dev": { "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-deprecation-rules": "^1.1", "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^9.5" }, @@ -2341,29 +2332,29 @@ "description": "Extra strict and opinionated rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", - "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.4.5" + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.5.1" }, - "time": "2023-01-11T14:16:29+00:00" + "time": "2023-03-29T14:47:40+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.24", + "version": "9.2.26", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed" + "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1", + "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.14", + "nikic/php-parser": "^4.15", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -2378,8 +2369,8 @@ "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { @@ -2412,7 +2403,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26" }, "funding": [ { @@ -2420,7 +2411,7 @@ "type": "github" } ], - "time": "2023-01-26T08:26:55+00:00" + "time": "2023-03-06T12:58:08+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2665,16 +2656,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.3", + "version": "9.6.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555" + "reference": "17d621b3aff84d0c8b62539e269e87d8d5baa76e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e7b1615e3e887d6c719121c6d4a44b0ab9645555", - "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/17d621b3aff84d0c8b62539e269e87d8d5baa76e", + "reference": "17d621b3aff84d0c8b62539e269e87d8d5baa76e", "shasum": "" }, "require": { @@ -2707,8 +2698,8 @@ "sebastian/version": "^3.0.2" }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -2747,7 +2738,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.3" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.8" }, "funding": [ { @@ -2763,7 +2755,7 @@ "type": "tidelift" } ], - "time": "2023-02-04T13:37:15+00:00" + "time": "2023-05-11T05:14:45+00:00" }, { "name": "psr/cache", @@ -2964,26 +2956,25 @@ }, { "name": "rector/rector", - "version": "0.15.13", + "version": "0.15.25", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "05df336f8e29873ed14c0790fbea68fa5de14f50" + "reference": "015935c7ed9e48a4f5895ba974f337e20a263841" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/05df336f8e29873ed14c0790fbea68fa5de14f50", - "reference": "05df336f8e29873ed14c0790fbea68fa5de14f50", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/015935c7ed9e48a4f5895ba974f337e20a263841", + "reference": "015935c7ed9e48a4f5895ba974f337e20a263841", "shasum": "" }, "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.9.14" + "phpstan/phpstan": "^1.10.14" }, "conflict": { "rector/rector-doctrine": "*", "rector/rector-downgrade-php": "*", - "rector/rector-php-parser": "*", "rector/rector-phpunit": "*", "rector/rector-symfony": "*" }, @@ -3006,9 +2997,15 @@ "MIT" ], "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" + ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.15.13" + "source": "https://github.com/rectorphp/rector/tree/0.15.25" }, "funding": [ { @@ -3016,7 +3013,7 @@ "type": "github" } ], - "time": "2023-02-07T01:46:29+00:00" + "time": "2023-04-20T16:07:39+00:00" }, { "name": "sanmai/later", @@ -3078,30 +3075,30 @@ }, { "name": "sanmai/pipeline", - "version": "v6.3", + "version": "v6.7", "source": { "type": "git", "url": "https://github.com/sanmai/pipeline.git", - "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43" + "reference": "0e5c45c8046298212347a0bfb659126af8e75d2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/929b115ca58d62b6b2574702df1ebde4562c7c43", - "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43", + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/0e5c45c8046298212347a0bfb659126af8e75d2e", + "reference": "0e5c45c8046298212347a0bfb659126af8e75d2e", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "ergebnis/composer-normalize": "^2.8", "friendsofphp/php-cs-fixer": "^3", "infection/infection": ">=0.10.5", - "league/pipeline": "^1.0 || ^0.3", + "league/pipeline": "^0.3 || ^1.0", "phan/phan": ">=1.1", "php-coveralls/php-coveralls": "^2.4.1", "phpstan/phpstan": ">=0.10", - "phpunit/phpunit": "^7.4 || ^8.1 || ^9.4", + "phpunit/phpunit": ">=9.4", "vimeo/psalm": ">=2" }, "type": "library", @@ -3131,7 +3128,7 @@ "description": "General-purpose collections pipeline", "support": { "issues": "https://github.com/sanmai/pipeline/issues", - "source": "https://github.com/sanmai/pipeline/tree/v6.3" + "source": "https://github.com/sanmai/pipeline/tree/v6.7" }, "funding": [ { @@ -3139,7 +3136,7 @@ "type": "github" } ], - "time": "2022-11-30T06:07:06+00:00" + "time": "2023-04-29T11:21:51+00:00" }, { "name": "sebastian/cli-parser", @@ -3441,16 +3438,16 @@ }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", "shasum": "" }, "require": { @@ -3495,7 +3492,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" }, "funding": [ { @@ -3503,7 +3500,7 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-05-07T05:35:17+00:00" }, { "name": "sebastian/environment", @@ -4107,26 +4104,25 @@ }, { "name": "spatie/array-to-xml", - "version": "2.17.1", + "version": "3.1.6", "source": { "type": "git", "url": "https://github.com/spatie/array-to-xml.git", - "reference": "5cbec9c6ab17e320c58a259f0cebe88bde4a7c46" + "reference": "e210b98957987c755372465be105d32113f339a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/5cbec9c6ab17e320c58a259f0cebe88bde4a7c46", - "reference": "5cbec9c6ab17e320c58a259f0cebe88bde4a7c46", + "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/e210b98957987c755372465be105d32113f339a4", + "reference": "e210b98957987c755372465be105d32113f339a4", "shasum": "" }, "require": { "ext-dom": "*", - "php": "^7.4|^8.0" + "php": "^8.0" }, "require-dev": { "mockery/mockery": "^1.2", "pestphp/pest": "^1.21", - "phpunit/phpunit": "^9.0", "spatie/pest-plugin-snapshots": "^1.1" }, "type": "library", @@ -4155,7 +4151,7 @@ "xml" ], "support": { - "source": "https://github.com/spatie/array-to-xml/tree/2.17.1" + "source": "https://github.com/spatie/array-to-xml/tree/3.1.6" }, "funding": [ { @@ -4167,20 +4163,20 @@ "type": "github" } ], - "time": "2022-12-26T08:22:07+00:00" + "time": "2023-05-11T14:04:07+00:00" }, { "name": "symfony/console", - "version": "v5.4.19", + "version": "v5.4.24", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "dccb8d251a9017d5994c988b034d3e18aaabf740" + "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/dccb8d251a9017d5994c988b034d3e18aaabf740", - "reference": "dccb8d251a9017d5994c988b034d3e18aaabf740", + "url": "https://api.github.com/repos/symfony/console/zipball/560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", + "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", "shasum": "" }, "require": { @@ -4245,12 +4241,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.19" + "source": "https://github.com/symfony/console/tree/v5.4.24" }, "funding": [ { @@ -4266,7 +4262,7 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:32:19+00:00" + "time": "2023-05-26T05:13:16+00:00" }, { "name": "symfony/deprecation-contracts", @@ -4337,16 +4333,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v5.4.19", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "abf49cc084c087d94b4cb939c3f3672971784e0c" + "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/abf49cc084c087d94b4cb939c3f3672971784e0c", - "reference": "abf49cc084c087d94b4cb939c3f3672971784e0c", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f", + "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f", "shasum": "" }, "require": { @@ -4402,7 +4398,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.19" + "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.22" }, "funding": [ { @@ -4418,7 +4414,7 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:32:19+00:00" + "time": "2023-03-17T11:31:58+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4501,16 +4497,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.4.19", + "version": "v5.4.23", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "648bfaca6a494f3e22378123bcee2894045dc9d8" + "reference": "b2f79d86cd9e7de0fff6d03baa80eaed7a5f38b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/648bfaca6a494f3e22378123bcee2894045dc9d8", - "reference": "648bfaca6a494f3e22378123bcee2894045dc9d8", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/b2f79d86cd9e7de0fff6d03baa80eaed7a5f38b5", + "reference": "b2f79d86cd9e7de0fff6d03baa80eaed7a5f38b5", "shasum": "" }, "require": { @@ -4545,7 +4541,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.19" + "source": "https://github.com/symfony/filesystem/tree/v5.4.23" }, "funding": [ { @@ -4561,20 +4557,20 @@ "type": "tidelift" } ], - "time": "2023-01-14T19:14:44+00:00" + "time": "2023-03-02T11:38:35+00:00" }, { "name": "symfony/finder", - "version": "v5.4.19", + "version": "v5.4.21", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6071aebf810ad13fe8200c224f36103abb37cf1f" + "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6071aebf810ad13fe8200c224f36103abb37cf1f", - "reference": "6071aebf810ad13fe8200c224f36103abb37cf1f", + "url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19", + "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19", "shasum": "" }, "require": { @@ -4608,7 +4604,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.19" + "source": "https://github.com/symfony/finder/tree/v5.4.21" }, "funding": [ { @@ -4624,20 +4620,20 @@ "type": "tidelift" } ], - "time": "2023-01-14T19:14:44+00:00" + "time": "2023-02-16T09:33:00+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.4.19", + "version": "v5.4.21", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "b03c99236445492f20c61666e8f7e5d388b078e5" + "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b03c99236445492f20c61666e8f7e5d388b078e5", - "reference": "b03c99236445492f20c61666e8f7e5d388b078e5", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", + "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", "shasum": "" }, "require": { @@ -4677,7 +4673,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.4.19" + "source": "https://github.com/symfony/options-resolver/tree/v5.4.21" }, "funding": [ { @@ -4693,7 +4689,7 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:32:19+00:00" + "time": "2023-02-14T08:03:56+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5268,16 +5264,16 @@ }, { "name": "symfony/process", - "version": "v5.4.19", + "version": "v5.4.24", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "c5ba874c9b636dbccf761e22ce750e88ec3f55e1" + "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/c5ba874c9b636dbccf761e22ce750e88ec3f55e1", - "reference": "c5ba874c9b636dbccf761e22ce750e88ec3f55e1", + "url": "https://api.github.com/repos/symfony/process/zipball/e3c46cc5689c8782944274bb30702106ecbe3b64", + "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64", "shasum": "" }, "require": { @@ -5310,7 +5306,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.19" + "source": "https://github.com/symfony/process/tree/v5.4.24" }, "funding": [ { @@ -5326,7 +5322,7 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:32:19+00:00" + "time": "2023-05-17T11:26:05+00:00" }, { "name": "symfony/service-contracts", @@ -5413,16 +5409,16 @@ }, { "name": "symfony/stopwatch", - "version": "v5.4.19", + "version": "v5.4.21", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "bd2b066090fd6a67039371098fa25a84cb2679ec" + "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/bd2b066090fd6a67039371098fa25a84cb2679ec", - "reference": "bd2b066090fd6a67039371098fa25a84cb2679ec", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", + "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", "shasum": "" }, "require": { @@ -5455,7 +5451,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v5.4.19" + "source": "https://github.com/symfony/stopwatch/tree/v5.4.21" }, "funding": [ { @@ -5471,20 +5467,20 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:32:19+00:00" + "time": "2023-02-14T08:03:56+00:00" }, { "name": "symfony/string", - "version": "v5.4.19", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "0a01071610fd861cc160dfb7e2682ceec66064cb" + "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/0a01071610fd861cc160dfb7e2682ceec66064cb", - "reference": "0a01071610fd861cc160dfb7e2682ceec66064cb", + "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", + "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", "shasum": "" }, "require": { @@ -5541,7 +5537,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.19" + "source": "https://github.com/symfony/string/tree/v5.4.22" }, "funding": [ { @@ -5557,20 +5553,20 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:32:19+00:00" + "time": "2023-03-14T06:11:53+00:00" }, { "name": "thecodingmachine/safe", - "version": "v2.4.0", + "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/thecodingmachine/safe.git", - "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3" + "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/e788f3d09dcd36f806350aedb77eac348fafadd3", - "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/3115ecd6b4391662b4931daac4eba6b07a2ac1f0", + "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0", "shasum": "" }, "require": { @@ -5694,9 +5690,9 @@ "description": "PHP core functions that throw exceptions instead of returning FALSE on error", "support": { "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v2.4.0" + "source": "https://github.com/thecodingmachine/safe/tree/v2.5.0" }, - "time": "2022-10-07T14:02:17+00:00" + "time": "2023-04-05T11:54:14+00:00" }, { "name": "theseer/tokenizer", @@ -5750,22 +5746,22 @@ }, { "name": "vimeo/psalm", - "version": "5.6.0", + "version": "5.12.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "e784128902dfe01d489c4123d69918a9f3c1eac5" + "reference": "f90118cdeacd0088e7215e64c0c99ceca819e176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/e784128902dfe01d489c4123d69918a9f3c1eac5", - "reference": "e784128902dfe01d489c4123d69918a9f3c1eac5", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/f90118cdeacd0088e7215e64c0c99ceca819e176", + "reference": "f90118cdeacd0088e7215e64c0c99ceca819e176", "shasum": "" }, "require": { "amphp/amp": "^2.4.2", "amphp/byte-stream": "^1.5", - "composer/package-versions-deprecated": "^1.10.0", + "composer-runtime-api": "^2", "composer/semver": "^1.4 || ^2.0 || ^3.0", "composer/xdebug-handler": "^2.0 || ^3.0", "dnoegel/php-xdg-base-dir": "^0.1.1", @@ -5778,12 +5774,12 @@ "ext-tokenizer": "*", "felixfbecker/advanced-json-rpc": "^3.1", "felixfbecker/language-server-protocol": "^1.5.2", - "fidry/cpu-core-counter": "^0.4.0", + "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.13", + "nikic/php-parser": "^4.14", "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0", "sebastian/diff": "^4.0 || ^5.0", - "spatie/array-to-xml": "^2.17.0", + "spatie/array-to-xml": "^2.17.0 || ^3.0", "symfony/console": "^4.1.6 || ^5.0 || ^6.0", "symfony/filesystem": "^5.4 || ^6.0" }, @@ -5791,14 +5787,15 @@ "psalm/psalm": "self.version" }, "require-dev": { + "amphp/phpunit-util": "^2.0", "bamarni/composer-bin-plugin": "^1.4", - "brianium/paratest": "^6.0", + "brianium/paratest": "^6.9", "ext-curl": "*", "mockery/mockery": "^1.5", "nunomaduro/mock-final-classes": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpdoc-parser": "^1.6", - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^9.6", "psalm/plugin-mockery": "^1.1", "psalm/plugin-phpunit": "^0.18", "slevomat/coding-standard": "^8.4", @@ -5844,13 +5841,14 @@ "keywords": [ "code", "inspection", - "php" + "php", + "static analysis" ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/5.6.0" + "source": "https://github.com/vimeo/psalm/tree/5.12.0" }, - "time": "2023-01-23T20:32:47+00:00" + "time": "2023-05-22T21:19:03+00:00" }, { "name": "webmozart/assert", diff --git a/qa/PHPStan/Extension/TreeMapperPHPStanExtension.php b/qa/PHPStan/Extension/TreeMapperPHPStanExtension.php index 18a2a498..ac447d9d 100644 --- a/qa/PHPStan/Extension/TreeMapperPHPStanExtension.php +++ b/qa/PHPStan/Extension/TreeMapperPHPStanExtension.php @@ -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 { diff --git a/src/Cache/Compiled/CompiledPhpFileCache.php b/src/Cache/Compiled/CompiledPhpFileCache.php index 97ffa69c..fea8e681 100644 --- a/src/Cache/Compiled/CompiledPhpFileCache.php +++ b/src/Cache/Compiled/CompiledPhpFileCache.php @@ -44,8 +44,7 @@ final class CompiledPhpFileCache implements CacheInterface public function __construct( private string $cacheDir, private CacheCompiler $compiler - ) { - } + ) {} public function has($key): bool { diff --git a/src/Cache/FileWatchingCache.php b/src/Cache/FileWatchingCache.php index d9cf7b07..770d38c6 100644 --- a/src/Cache/FileWatchingCache.php +++ b/src/Cache/FileWatchingCache.php @@ -39,8 +39,7 @@ final class FileWatchingCache implements CacheInterface public function __construct( /** @var CacheInterface */ private CacheInterface $delegate - ) { - } + ) {} public function has($key): bool { diff --git a/src/Cache/Warmup/RecursiveCacheWarmupService.php b/src/Cache/Warmup/RecursiveCacheWarmupService.php index 4d0af544..f22beca3 100644 --- a/src/Cache/Warmup/RecursiveCacheWarmupService.php +++ b/src/Cache/Warmup/RecursiveCacheWarmupService.php @@ -28,8 +28,7 @@ public function __construct( private ObjectImplementations $implementations, private ClassDefinitionRepository $classDefinitionRepository, private ObjectBuilderFactory $objectBuilderFactory - ) { - } + ) {} public function warmup(string ...$signatures): void { diff --git a/src/Definition/ClassDefinition.php b/src/Definition/ClassDefinition.php index 1fac82a6..74b11d49 100644 --- a/src/Definition/ClassDefinition.php +++ b/src/Definition/ClassDefinition.php @@ -16,8 +16,7 @@ public function __construct( private Methods $methods, private bool $isFinal, private bool $isAbstract, - ) { - } + ) {} /** * @return class-string diff --git a/src/Definition/FunctionDefinition.php b/src/Definition/FunctionDefinition.php index c8eb7890..77b6ddfb 100644 --- a/src/Definition/FunctionDefinition.php +++ b/src/Definition/FunctionDefinition.php @@ -20,8 +20,7 @@ public function __construct( private bool $isClosure, private Parameters $parameters, private Type $returnType - ) { - } + ) {} public function name(): string { diff --git a/src/Definition/FunctionsContainer.php b/src/Definition/FunctionsContainer.php index df7c0258..d6269f5b 100644 --- a/src/Definition/FunctionsContainer.php +++ b/src/Definition/FunctionsContainer.php @@ -24,8 +24,7 @@ public function __construct( private FunctionDefinitionRepository $functionDefinitionRepository, /** @var array */ private array $callables - ) { - } + ) {} public function has(string|int $key): bool { diff --git a/src/Definition/MethodDefinition.php b/src/Definition/MethodDefinition.php index 8d8910be..a04e8928 100644 --- a/src/Definition/MethodDefinition.php +++ b/src/Definition/MethodDefinition.php @@ -16,8 +16,7 @@ public function __construct( private bool $isStatic, private bool $isPublic, private Type $returnType - ) { - } + ) {} public function name(): string { diff --git a/src/Definition/ParameterDefinition.php b/src/Definition/ParameterDefinition.php index 16f26293..6ea27a6c 100644 --- a/src/Definition/ParameterDefinition.php +++ b/src/Definition/ParameterDefinition.php @@ -17,8 +17,7 @@ public function __construct( private bool $isVariadic, private mixed $defaultValue, private Attributes $attributes - ) { - } + ) {} public function name(): string { diff --git a/src/Definition/PropertyDefinition.php b/src/Definition/PropertyDefinition.php index c6e5a4b7..ac0aaaee 100644 --- a/src/Definition/PropertyDefinition.php +++ b/src/Definition/PropertyDefinition.php @@ -17,8 +17,7 @@ public function __construct( private mixed $defaultValue, private bool $isPublic, private Attributes $attributes - ) { - } + ) {} public function name(): string { diff --git a/src/Definition/Repository/Cache/CacheClassDefinitionRepository.php b/src/Definition/Repository/Cache/CacheClassDefinitionRepository.php index 32d489a2..e1307d33 100644 --- a/src/Definition/Repository/Cache/CacheClassDefinitionRepository.php +++ b/src/Definition/Repository/Cache/CacheClassDefinitionRepository.php @@ -16,8 +16,7 @@ public function __construct( private ClassDefinitionRepository $delegate, /** @var CacheInterface */ private CacheInterface $cache - ) { - } + ) {} public function for(ClassType $type): ClassDefinition { diff --git a/src/Definition/Repository/Cache/CacheFunctionDefinitionRepository.php b/src/Definition/Repository/Cache/CacheFunctionDefinitionRepository.php index 8fd31b2f..65dec146 100644 --- a/src/Definition/Repository/Cache/CacheFunctionDefinitionRepository.php +++ b/src/Definition/Repository/Cache/CacheFunctionDefinitionRepository.php @@ -16,8 +16,7 @@ public function __construct( private FunctionDefinitionRepository $delegate, /** @var CacheInterface */ private CacheInterface $cache - ) { - } + ) {} public function for(callable $function): FunctionDefinition { diff --git a/src/Definition/Repository/Cache/Compiler/ParameterDefinitionCompiler.php b/src/Definition/Repository/Cache/Compiler/ParameterDefinitionCompiler.php index d273b384..be0a590f 100644 --- a/src/Definition/Repository/Cache/Compiler/ParameterDefinitionCompiler.php +++ b/src/Definition/Repository/Cache/Compiler/ParameterDefinitionCompiler.php @@ -12,8 +12,7 @@ final class ParameterDefinitionCompiler public function __construct( private TypeCompiler $typeCompiler, private AttributesCompiler $attributesCompiler - ) { - } + ) {} public function compile(ParameterDefinition $parameter): string { diff --git a/src/Definition/Repository/Cache/Compiler/PropertyDefinitionCompiler.php b/src/Definition/Repository/Cache/Compiler/PropertyDefinitionCompiler.php index 7e4dd7d3..3a6fb9f0 100644 --- a/src/Definition/Repository/Cache/Compiler/PropertyDefinitionCompiler.php +++ b/src/Definition/Repository/Cache/Compiler/PropertyDefinitionCompiler.php @@ -12,8 +12,7 @@ final class PropertyDefinitionCompiler public function __construct( private TypeCompiler $typeCompiler, private AttributesCompiler $attributesCompiler - ) { - } + ) {} public function compile(PropertyDefinition $property): string { diff --git a/src/Definition/Repository/Reflection/ReflectionParameterDefinitionBuilder.php b/src/Definition/Repository/Reflection/ReflectionParameterDefinitionBuilder.php index 4b4122a2..cc0d2120 100644 --- a/src/Definition/Repository/Reflection/ReflectionParameterDefinitionBuilder.php +++ b/src/Definition/Repository/Reflection/ReflectionParameterDefinitionBuilder.php @@ -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 { diff --git a/src/Definition/Repository/Reflection/ReflectionPropertyDefinitionBuilder.php b/src/Definition/Repository/Reflection/ReflectionPropertyDefinitionBuilder.php index e1909dc3..802f242c 100644 --- a/src/Definition/Repository/Reflection/ReflectionPropertyDefinitionBuilder.php +++ b/src/Definition/Repository/Reflection/ReflectionPropertyDefinitionBuilder.php @@ -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 { diff --git a/src/Definition/Repository/Reflection/ReflectionTypeResolver.php b/src/Definition/Repository/Reflection/ReflectionTypeResolver.php index 3d3b9406..ca6a4e1d 100644 --- a/src/Definition/Repository/Reflection/ReflectionTypeResolver.php +++ b/src/Definition/Repository/Reflection/ReflectionTypeResolver.php @@ -21,8 +21,7 @@ final class ReflectionTypeResolver public function __construct( private TypeParser $nativeParser, private TypeParser $advancedParser - ) { - } + ) {} public function resolveType(\ReflectionProperty|\ReflectionParameter|\ReflectionFunctionAbstract $reflection): Type { diff --git a/src/Mapper/Object/DynamicConstructor.php b/src/Mapper/Object/DynamicConstructor.php index 6e5cc5f4..b032c71a 100644 --- a/src/Mapper/Object/DynamicConstructor.php +++ b/src/Mapper/Object/DynamicConstructor.php @@ -48,6 +48,4 @@ * @api */ #[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] -final class DynamicConstructor -{ -} +final class DynamicConstructor {} diff --git a/src/Mapper/Object/Factory/CacheObjectBuilderFactory.php b/src/Mapper/Object/Factory/CacheObjectBuilderFactory.php index 04144ce0..82f14007 100644 --- a/src/Mapper/Object/Factory/CacheObjectBuilderFactory.php +++ b/src/Mapper/Object/Factory/CacheObjectBuilderFactory.php @@ -15,8 +15,7 @@ public function __construct( private ObjectBuilderFactory $delegate, /** @var CacheInterface> */ private CacheInterface $cache - ) { - } + ) {} public function for(ClassDefinition $class): array { diff --git a/src/Mapper/Object/Factory/CollisionObjectBuilderFactory.php b/src/Mapper/Object/Factory/CollisionObjectBuilderFactory.php index c65ecb66..702a278b 100644 --- a/src/Mapper/Object/Factory/CollisionObjectBuilderFactory.php +++ b/src/Mapper/Object/Factory/CollisionObjectBuilderFactory.php @@ -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 { diff --git a/src/Mapper/Object/Factory/ConstructorObjectBuilderFactory.php b/src/Mapper/Object/Factory/ConstructorObjectBuilderFactory.php index 2be3a248..feff612f 100644 --- a/src/Mapper/Object/Factory/ConstructorObjectBuilderFactory.php +++ b/src/Mapper/Object/Factory/ConstructorObjectBuilderFactory.php @@ -38,8 +38,7 @@ public function __construct( /** @var array */ private array $nativeConstructors, private FunctionsContainer $constructors - ) { - } + ) {} public function for(ClassDefinition $class): array { diff --git a/src/Mapper/Object/Factory/DateTimeObjectBuilderFactory.php b/src/Mapper/Object/Factory/DateTimeObjectBuilderFactory.php index 282c4c71..b3960b61 100644 --- a/src/Mapper/Object/Factory/DateTimeObjectBuilderFactory.php +++ b/src/Mapper/Object/Factory/DateTimeObjectBuilderFactory.php @@ -24,8 +24,7 @@ final class DateTimeObjectBuilderFactory implements ObjectBuilderFactory public function __construct( private ObjectBuilderFactory $delegate, private FunctionDefinitionRepository $functionDefinitionRepository - ) { - } + ) {} public function for(ClassDefinition $class): array { diff --git a/src/Mapper/Object/Factory/StrictTypesObjectBuilderFactory.php b/src/Mapper/Object/Factory/StrictTypesObjectBuilderFactory.php index cfc8f079..372c2093 100644 --- a/src/Mapper/Object/Factory/StrictTypesObjectBuilderFactory.php +++ b/src/Mapper/Object/Factory/StrictTypesObjectBuilderFactory.php @@ -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 { diff --git a/src/Mapper/Object/MethodObjectBuilder.php b/src/Mapper/Object/MethodObjectBuilder.php index 3cca1c2e..25f25fd6 100644 --- a/src/Mapper/Object/MethodObjectBuilder.php +++ b/src/Mapper/Object/MethodObjectBuilder.php @@ -17,8 +17,7 @@ public function __construct( private string $className, private string $methodName, private Parameters $parameters - ) { - } + ) {} public function describeArguments(): Arguments { diff --git a/src/Mapper/Object/NativeConstructorObjectBuilder.php b/src/Mapper/Object/NativeConstructorObjectBuilder.php index 30eb40aa..ec7bedd3 100644 --- a/src/Mapper/Object/NativeConstructorObjectBuilder.php +++ b/src/Mapper/Object/NativeConstructorObjectBuilder.php @@ -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 { diff --git a/src/Mapper/Object/ReflectionObjectBuilder.php b/src/Mapper/Object/ReflectionObjectBuilder.php index 2bac6410..54447c75 100644 --- a/src/Mapper/Object/ReflectionObjectBuilder.php +++ b/src/Mapper/Object/ReflectionObjectBuilder.php @@ -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 { diff --git a/src/Mapper/Source/Source.php b/src/Mapper/Source/Source.php index f50bf322..eb71f0f2 100644 --- a/src/Mapper/Source/Source.php +++ b/src/Mapper/Source/Source.php @@ -21,8 +21,7 @@ final class Source implements IteratorAggregate private function __construct( /** @var iterable */ private iterable $delegate - ) { - } + ) {} /** * @param iterable $data diff --git a/src/Mapper/Tree/Builder/ArrayNodeBuilder.php b/src/Mapper/Tree/Builder/ArrayNodeBuilder.php index 3f0d1901..bcacaca5 100644 --- a/src/Mapper/Tree/Builder/ArrayNodeBuilder.php +++ b/src/Mapper/Tree/Builder/ArrayNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/CasterNodeBuilder.php b/src/Mapper/Tree/Builder/CasterNodeBuilder.php index aefbf89b..a0063487 100644 --- a/src/Mapper/Tree/Builder/CasterNodeBuilder.php +++ b/src/Mapper/Tree/Builder/CasterNodeBuilder.php @@ -13,8 +13,7 @@ final class CasterNodeBuilder implements NodeBuilder public function __construct( /** @var array */ private array $builders - ) { - } + ) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php b/src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php index 1efe39cf..db2de428 100644 --- a/src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php +++ b/src/Mapper/Tree/Builder/CasterProxyNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/InterfaceNodeBuilder.php b/src/Mapper/Tree/Builder/InterfaceNodeBuilder.php index edc1cae8..eb6a03c4 100644 --- a/src/Mapper/Tree/Builder/InterfaceNodeBuilder.php +++ b/src/Mapper/Tree/Builder/InterfaceNodeBuilder.php @@ -27,8 +27,7 @@ public function __construct( private ObjectBuilderFactory $objectBuilderFactory, private ObjectNodeBuilder $objectNodeBuilder, private bool $enableFlexibleCasting - ) { - } + ) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Builder/IterableNodeBuilder.php b/src/Mapper/Tree/Builder/IterableNodeBuilder.php index c615c0c6..a3580ce0 100644 --- a/src/Mapper/Tree/Builder/IterableNodeBuilder.php +++ b/src/Mapper/Tree/Builder/IterableNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/ListNodeBuilder.php b/src/Mapper/Tree/Builder/ListNodeBuilder.php index 531b1bee..8033c4d8 100644 --- a/src/Mapper/Tree/Builder/ListNodeBuilder.php +++ b/src/Mapper/Tree/Builder/ListNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/NativeClassNodeBuilder.php b/src/Mapper/Tree/Builder/NativeClassNodeBuilder.php index eae3fac0..f129b3d3 100644 --- a/src/Mapper/Tree/Builder/NativeClassNodeBuilder.php +++ b/src/Mapper/Tree/Builder/NativeClassNodeBuilder.php @@ -20,8 +20,7 @@ public function __construct( private ObjectBuilderFactory $objectBuilderFactory, private ObjectNodeBuilder $objectNodeBuilder, private bool $enableFlexibleCasting, - ) { - } + ) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Builder/ObjectNodeBuilder.php b/src/Mapper/Tree/Builder/ObjectNodeBuilder.php index 060d8542..e0965e5b 100644 --- a/src/Mapper/Tree/Builder/ObjectNodeBuilder.php +++ b/src/Mapper/Tree/Builder/ObjectNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/RootNodeBuilder.php b/src/Mapper/Tree/Builder/RootNodeBuilder.php index ed4da9c9..0afca986 100644 --- a/src/Mapper/Tree/Builder/RootNodeBuilder.php +++ b/src/Mapper/Tree/Builder/RootNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/ScalarNodeBuilder.php b/src/Mapper/Tree/Builder/ScalarNodeBuilder.php index 34528652..9a0d8a76 100644 --- a/src/Mapper/Tree/Builder/ScalarNodeBuilder.php +++ b/src/Mapper/Tree/Builder/ScalarNodeBuilder.php @@ -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 { diff --git a/src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php b/src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php index 7fce7461..492d74a4 100644 --- a/src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php +++ b/src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php @@ -17,9 +17,7 @@ /** @internal */ final class ShapedArrayNodeBuilder implements NodeBuilder { - public function __construct(private bool $allowSuperfluousKeys) - { - } + public function __construct(private bool $allowSuperfluousKeys) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Builder/StrictNodeBuilder.php b/src/Mapper/Tree/Builder/StrictNodeBuilder.php index 84d9cfd6..ecff6142 100644 --- a/src/Mapper/Tree/Builder/StrictNodeBuilder.php +++ b/src/Mapper/Tree/Builder/StrictNodeBuilder.php @@ -15,8 +15,7 @@ public function __construct( private NodeBuilder $delegate, private bool $allowPermissiveTypes, private bool $enableFlexibleCasting - ) { - } + ) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Builder/UnionNodeBuilder.php b/src/Mapper/Tree/Builder/UnionNodeBuilder.php index bf6babda..dd35ef87 100644 --- a/src/Mapper/Tree/Builder/UnionNodeBuilder.php +++ b/src/Mapper/Tree/Builder/UnionNodeBuilder.php @@ -27,8 +27,7 @@ public function __construct( private ObjectBuilderFactory $objectBuilderFactory, private ObjectNodeBuilder $objectNodeBuilder, private bool $enableFlexibleCasting - ) { - } + ) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Builder/ValueAlteringNodeBuilder.php b/src/Mapper/Tree/Builder/ValueAlteringNodeBuilder.php index e8333300..66a6630d 100644 --- a/src/Mapper/Tree/Builder/ValueAlteringNodeBuilder.php +++ b/src/Mapper/Tree/Builder/ValueAlteringNodeBuilder.php @@ -13,8 +13,7 @@ final class ValueAlteringNodeBuilder implements NodeBuilder public function __construct( private NodeBuilder $delegate, private FunctionsContainer $functions - ) { - } + ) {} public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode { diff --git a/src/Mapper/Tree/Message/Formatter/LocaleMessageFormatter.php b/src/Mapper/Tree/Message/Formatter/LocaleMessageFormatter.php index 00f05b70..3dc93a3c 100644 --- a/src/Mapper/Tree/Message/Formatter/LocaleMessageFormatter.php +++ b/src/Mapper/Tree/Message/Formatter/LocaleMessageFormatter.php @@ -9,9 +9,7 @@ /** @api */ final class LocaleMessageFormatter implements MessageFormatter { - public function __construct(private string $locale) - { - } + public function __construct(private string $locale) {} public function format(NodeMessage $message): NodeMessage { diff --git a/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php b/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php index 08576e67..9ca30d56 100644 --- a/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php +++ b/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php @@ -67,8 +67,7 @@ final class MessageMapFormatter implements MessageFormatter public function __construct( /** @var array */ private array $map - ) { - } + ) {} public function format(NodeMessage $message): NodeMessage { diff --git a/src/Mapper/Tree/Message/MessageBuilder.php b/src/Mapper/Tree/Message/MessageBuilder.php index f9b4f446..2230e121 100644 --- a/src/Mapper/Tree/Message/MessageBuilder.php +++ b/src/Mapper/Tree/Message/MessageBuilder.php @@ -31,9 +31,7 @@ final class MessageBuilder /** @var array */ private array $parameters = []; - private function __construct(private string $body) - { - } + private function __construct(private string $body) {} /** * @return self @@ -135,9 +133,11 @@ private function buildMessage(): Message /** * @param array $parameters */ - public function __construct(private string $body, private string $code, private array $parameters) - { - } + public function __construct( + private string $body, + private string $code, + private array $parameters + ) {} public function body(): string { diff --git a/src/Mapper/TypeTreeMapper.php b/src/Mapper/TypeTreeMapper.php index 6103840d..a9b4194c 100644 --- a/src/Mapper/TypeTreeMapper.php +++ b/src/Mapper/TypeTreeMapper.php @@ -17,8 +17,7 @@ final class TypeTreeMapper implements TreeMapper public function __construct( private TypeParser $typeParser, private RootNodeBuilder $nodeBuilder - ) { - } + ) {} /** @pure */ public function map(string $signature, mixed $source): mixed diff --git a/src/Type/Parser/CachedParser.php b/src/Type/Parser/CachedParser.php index 7cc04977..1d1eefa7 100644 --- a/src/Type/Parser/CachedParser.php +++ b/src/Type/Parser/CachedParser.php @@ -12,9 +12,7 @@ final class CachedParser implements TypeParser /** @var array */ private array $types = []; - public function __construct(private TypeParser $delegate) - { - } + public function __construct(private TypeParser $delegate) {} public function parse(string $raw): Type { diff --git a/src/Type/Parser/Factory/LexingTypeParserFactory.php b/src/Type/Parser/Factory/LexingTypeParserFactory.php index 56718120..08d0eea3 100644 --- a/src/Type/Parser/Factory/LexingTypeParserFactory.php +++ b/src/Type/Parser/Factory/LexingTypeParserFactory.php @@ -17,9 +17,7 @@ final class LexingTypeParserFactory implements TypeParserFactory { private TypeParser $nativeParser; - public function __construct(private TemplateParser $templateParser) - { - } + public function __construct(private TemplateParser $templateParser) {} public function get(TypeParserSpecification ...$specifications): TypeParser { diff --git a/src/Type/Parser/Factory/Specifications/AliasSpecification.php b/src/Type/Parser/Factory/Specifications/AliasSpecification.php index 09cbe4ee..59e70601 100644 --- a/src/Type/Parser/Factory/Specifications/AliasSpecification.php +++ b/src/Type/Parser/Factory/Specifications/AliasSpecification.php @@ -16,8 +16,7 @@ final class AliasSpecification implements TypeParserSpecification public function __construct( /** @var ReflectionClass|ReflectionFunction */ private Reflector $reflection - ) { - } + ) {} public function transform(TypeLexer $lexer): TypeLexer { diff --git a/src/Type/Parser/Factory/Specifications/ClassContextSpecification.php b/src/Type/Parser/Factory/Specifications/ClassContextSpecification.php index fa508ad1..dcb3c628 100644 --- a/src/Type/Parser/Factory/Specifications/ClassContextSpecification.php +++ b/src/Type/Parser/Factory/Specifications/ClassContextSpecification.php @@ -13,8 +13,7 @@ final class ClassContextSpecification implements TypeParserSpecification public function __construct( /** @var class-string */ private string $className - ) { - } + ) {} public function transform(TypeLexer $lexer): TypeLexer { diff --git a/src/Type/Parser/Factory/Specifications/TypeAliasAssignerSpecification.php b/src/Type/Parser/Factory/Specifications/TypeAliasAssignerSpecification.php index 58181997..14060361 100644 --- a/src/Type/Parser/Factory/Specifications/TypeAliasAssignerSpecification.php +++ b/src/Type/Parser/Factory/Specifications/TypeAliasAssignerSpecification.php @@ -14,8 +14,7 @@ final class TypeAliasAssignerSpecification implements TypeParserSpecification public function __construct( /** @var array */ private array $aliases - ) { - } + ) {} public function transform(TypeLexer $lexer): TypeLexer { diff --git a/src/Type/Parser/Lexer/AdvancedClassLexer.php b/src/Type/Parser/Lexer/AdvancedClassLexer.php index 40bd49ba..0ac28d38 100644 --- a/src/Type/Parser/Lexer/AdvancedClassLexer.php +++ b/src/Type/Parser/Lexer/AdvancedClassLexer.php @@ -17,8 +17,7 @@ public function __construct( private TypeLexer $delegate, private TypeParserFactory $typeParserFactory, private TemplateParser $templateParser - ) { - } + ) {} public function tokenize(string $symbol): Token { diff --git a/src/Type/Parser/Lexer/AliasLexer.php b/src/Type/Parser/Lexer/AliasLexer.php index d53c9b18..96c2ac46 100644 --- a/src/Type/Parser/Lexer/AliasLexer.php +++ b/src/Type/Parser/Lexer/AliasLexer.php @@ -20,8 +20,7 @@ public function __construct( private TypeLexer $delegate, /** @var ReflectionClass|ReflectionFunction */ private Reflector $reflection - ) { - } + ) {} public function tokenize(string $symbol): Token { diff --git a/src/Type/Parser/Lexer/Token/AdvancedClassNameToken.php b/src/Type/Parser/Lexer/Token/AdvancedClassNameToken.php index 70c42c75..e5bafa96 100644 --- a/src/Type/Parser/Lexer/Token/AdvancedClassNameToken.php +++ b/src/Type/Parser/Lexer/Token/AdvancedClassNameToken.php @@ -46,8 +46,7 @@ public function __construct( private ClassNameToken $delegate, private TypeParserFactory $typeParserFactory, private TemplateParser $templateParser - ) { - } + ) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/Token/ArrayToken.php b/src/Type/Parser/Lexer/Token/ArrayToken.php index 24ea9618..6d37b433 100644 --- a/src/Type/Parser/Lexer/Token/ArrayToken.php +++ b/src/Type/Parser/Lexer/Token/ArrayToken.php @@ -36,8 +36,7 @@ private function __construct( /** @var class-string */ private string $arrayType, private string $symbol - ) { - } + ) {} public static function array(): self { diff --git a/src/Type/Parser/Lexer/Token/CaseFinder.php b/src/Type/Parser/Lexer/Token/CaseFinder.php index e318ce83..b5d34d8e 100644 --- a/src/Type/Parser/Lexer/Token/CaseFinder.php +++ b/src/Type/Parser/Lexer/Token/CaseFinder.php @@ -19,8 +19,7 @@ final class CaseFinder public function __construct( /** @var array */ private array $cases - ) { - } + ) {} /** * @param list $tokens diff --git a/src/Type/Parser/Lexer/Token/EnumNameToken.php b/src/Type/Parser/Lexer/Token/EnumNameToken.php index 40dcad96..513ba07b 100644 --- a/src/Type/Parser/Lexer/Token/EnumNameToken.php +++ b/src/Type/Parser/Lexer/Token/EnumNameToken.php @@ -18,8 +18,7 @@ final class EnumNameToken implements TraversingToken public function __construct( /** @var class-string */ private string $enumName - ) { - } + ) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/Token/FloatValueToken.php b/src/Type/Parser/Lexer/Token/FloatValueToken.php index d1851deb..23e47843 100644 --- a/src/Type/Parser/Lexer/Token/FloatValueToken.php +++ b/src/Type/Parser/Lexer/Token/FloatValueToken.php @@ -11,9 +11,7 @@ /** @internal */ final class FloatValueToken implements TraversingToken { - public function __construct(private float $value) - { - } + public function __construct(private float $value) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/Token/IntegerValueToken.php b/src/Type/Parser/Lexer/Token/IntegerValueToken.php index 36c153e8..7e2373d0 100644 --- a/src/Type/Parser/Lexer/Token/IntegerValueToken.php +++ b/src/Type/Parser/Lexer/Token/IntegerValueToken.php @@ -11,9 +11,7 @@ /** @internal */ final class IntegerValueToken implements TraversingToken { - public function __construct(private int $value) - { - } + public function __construct(private int $value) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/Token/ListToken.php b/src/Type/Parser/Lexer/Token/ListToken.php index c2fd225e..87254b60 100644 --- a/src/Type/Parser/Lexer/Token/ListToken.php +++ b/src/Type/Parser/Lexer/Token/ListToken.php @@ -21,8 +21,7 @@ private function __construct( /** @var class-string */ private string $listType, private string $symbol - ) { - } + ) {} public static function list(): self { diff --git a/src/Type/Parser/Lexer/Token/NativeToken.php b/src/Type/Parser/Lexer/Token/NativeToken.php index e354526a..f476bc46 100644 --- a/src/Type/Parser/Lexer/Token/NativeToken.php +++ b/src/Type/Parser/Lexer/Token/NativeToken.php @@ -30,8 +30,7 @@ final class NativeToken implements TraversingToken private function __construct( private Type $type, private string $symbol - ) { - } + ) {} public static function accepts(string $symbol): bool { diff --git a/src/Type/Parser/Lexer/Token/QuoteToken.php b/src/Type/Parser/Lexer/Token/QuoteToken.php index 05533663..875ddd4e 100644 --- a/src/Type/Parser/Lexer/Token/QuoteToken.php +++ b/src/Type/Parser/Lexer/Token/QuoteToken.php @@ -12,9 +12,7 @@ /** @internal */ final class QuoteToken implements TraversingToken { - public function __construct(private string $quoteType) - { - } + public function __construct(private string $quoteType) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/Token/TypeToken.php b/src/Type/Parser/Lexer/Token/TypeToken.php index 4ab0852f..cccffa0f 100644 --- a/src/Type/Parser/Lexer/Token/TypeToken.php +++ b/src/Type/Parser/Lexer/Token/TypeToken.php @@ -13,8 +13,7 @@ final class TypeToken implements TraversingToken public function __construct( private Type $type, private string $symbol - ) { - } + ) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/Token/UnknownSymbolToken.php b/src/Type/Parser/Lexer/Token/UnknownSymbolToken.php index 09efdd7f..01049629 100644 --- a/src/Type/Parser/Lexer/Token/UnknownSymbolToken.php +++ b/src/Type/Parser/Lexer/Token/UnknownSymbolToken.php @@ -11,9 +11,7 @@ /** @internal */ final class UnknownSymbolToken implements TraversingToken { - public function __construct(private string $symbol) - { - } + public function __construct(private string $symbol) {} public function traverse(TokenStream $stream): Type { diff --git a/src/Type/Parser/Lexer/TypeAliasLexer.php b/src/Type/Parser/Lexer/TypeAliasLexer.php index 89edf8e6..698a9292 100644 --- a/src/Type/Parser/Lexer/TypeAliasLexer.php +++ b/src/Type/Parser/Lexer/TypeAliasLexer.php @@ -15,8 +15,7 @@ public function __construct( private TypeLexer $delegate, /** @var array */ private array $aliases - ) { - } + ) {} public function tokenize(string $symbol): Token { diff --git a/src/Type/Parser/LexingParser.php b/src/Type/Parser/LexingParser.php index ab4c5854..a1a8379c 100644 --- a/src/Type/Parser/LexingParser.php +++ b/src/Type/Parser/LexingParser.php @@ -16,9 +16,7 @@ /** @internal */ final class LexingParser implements TypeParser { - public function __construct(private TypeLexer $lexer) - { - } + public function __construct(private TypeLexer $lexer) {} public function parse(string $raw): Type { diff --git a/src/Type/Types/BooleanValueType.php b/src/Type/Types/BooleanValueType.php index 119b2ddf..8e1dea9a 100644 --- a/src/Type/Types/BooleanValueType.php +++ b/src/Type/Types/BooleanValueType.php @@ -22,9 +22,7 @@ final class BooleanValueType implements BooleanType, FixedType /** * @codeCoverageIgnore */ - private function __construct(private bool $value) - { - } + private function __construct(private bool $value) {} public static function true(): self { diff --git a/src/Type/Types/FloatValueType.php b/src/Type/Types/FloatValueType.php index 1147faf1..a8a456f7 100644 --- a/src/Type/Types/FloatValueType.php +++ b/src/Type/Types/FloatValueType.php @@ -15,9 +15,7 @@ /** @internal */ final class FloatValueType implements FloatType, FixedType { - public function __construct(private float $value) - { - } + public function __construct(private float $value) {} public function accepts(mixed $value): bool { diff --git a/src/Type/Types/IntegerValueType.php b/src/Type/Types/IntegerValueType.php index dbb55686..f6cd7033 100644 --- a/src/Type/Types/IntegerValueType.php +++ b/src/Type/Types/IntegerValueType.php @@ -17,9 +17,7 @@ /** @internal */ final class IntegerValueType implements IntegerType, FixedType { - public function __construct(private int $value) - { - } + public function __construct(private int $value) {} public function accepts(mixed $value): bool { diff --git a/src/Type/Types/InterfaceType.php b/src/Type/Types/InterfaceType.php index b7d93742..4db2359d 100644 --- a/src/Type/Types/InterfaceType.php +++ b/src/Type/Types/InterfaceType.php @@ -20,8 +20,7 @@ public function __construct( private string $interfaceName, /** @var array */ private array $generics = [] - ) { - } + ) {} public function className(): string { diff --git a/src/Type/Types/ShapedArrayElement.php b/src/Type/Types/ShapedArrayElement.php index bc6dc086..fb76a8d7 100644 --- a/src/Type/Types/ShapedArrayElement.php +++ b/src/Type/Types/ShapedArrayElement.php @@ -13,8 +13,7 @@ public function __construct( private StringValueType|IntegerValueType $key, private Type $type, private bool $optional = false - ) { - } + ) {} public function key(): StringValueType|IntegerValueType { diff --git a/src/Type/Types/StringValueType.php b/src/Type/Types/StringValueType.php index 19d0a66c..a3babe05 100644 --- a/src/Type/Types/StringValueType.php +++ b/src/Type/Types/StringValueType.php @@ -20,9 +20,7 @@ final class StringValueType implements StringType, FixedType { private string $quoteChar; - public function __construct(private string $value) - { - } + public function __construct(private string $value) {} public static function singleQuote(string $value): self { diff --git a/tests/Fake/Definition/FakeClassDefinition.php b/tests/Fake/Definition/FakeClassDefinition.php index a4d85e53..a4d997a4 100644 --- a/tests/Fake/Definition/FakeClassDefinition.php +++ b/tests/Fake/Definition/FakeClassDefinition.php @@ -17,9 +17,7 @@ final class FakeClassDefinition { - private function __construct() - { - } + private function __construct() {} /** * @param class-string $name diff --git a/tests/Fake/Definition/FakeMethodDefinition.php b/tests/Fake/Definition/FakeMethodDefinition.php index fb77bb5b..cdfb74e2 100644 --- a/tests/Fake/Definition/FakeMethodDefinition.php +++ b/tests/Fake/Definition/FakeMethodDefinition.php @@ -14,9 +14,7 @@ final class FakeMethodDefinition { - private function __construct() - { - } + private function __construct() {} public static function new(string $name = 'someMethod'): MethodDefinition { diff --git a/tests/Fake/Definition/FakeParameterDefinition.php b/tests/Fake/Definition/FakeParameterDefinition.php index c8decf55..e6c9d07c 100644 --- a/tests/Fake/Definition/FakeParameterDefinition.php +++ b/tests/Fake/Definition/FakeParameterDefinition.php @@ -11,9 +11,7 @@ final class FakeParameterDefinition { - private function __construct() - { - } + private function __construct() {} public static function new(string $name = 'someParameter', Type $type = null): ParameterDefinition { diff --git a/tests/Fake/Definition/FakePropertyDefinition.php b/tests/Fake/Definition/FakePropertyDefinition.php index c30aa161..fdb54630 100644 --- a/tests/Fake/Definition/FakePropertyDefinition.php +++ b/tests/Fake/Definition/FakePropertyDefinition.php @@ -11,9 +11,7 @@ final class FakePropertyDefinition { - private function __construct() - { - } + private function __construct() {} public static function new(string $name = 'someProperty'): PropertyDefinition { diff --git a/tests/Fake/Mapper/Source/FakeIdentifiableSource.php b/tests/Fake/Mapper/Source/FakeIdentifiableSource.php index 5f03a4f5..84402484 100644 --- a/tests/Fake/Mapper/Source/FakeIdentifiableSource.php +++ b/tests/Fake/Mapper/Source/FakeIdentifiableSource.php @@ -8,9 +8,7 @@ final class FakeIdentifiableSource implements IdentifiableSource { - public function __construct(private string $sourceName) - { - } + public function __construct(private string $sourceName) {} public function sourceName(): string { diff --git a/tests/Fake/Mapper/Tree/Message/FakeMessage.php b/tests/Fake/Mapper/Tree/Message/FakeMessage.php index 540a92db..f39d0f82 100644 --- a/tests/Fake/Mapper/Tree/Message/FakeMessage.php +++ b/tests/Fake/Mapper/Tree/Message/FakeMessage.php @@ -13,9 +13,7 @@ final class FakeMessage implements Message, HasParameters, HasCode /** @var array */ private array $parameters = []; - public function __construct(private string $body = 'some message') - { - } + public function __construct(private string $body = 'some message') {} public function body(): string { diff --git a/tests/Fake/Type/FakeFixedType.php b/tests/Fake/Type/FakeFixedType.php index 882654b1..2a1eaa77 100644 --- a/tests/Fake/Type/FakeFixedType.php +++ b/tests/Fake/Type/FakeFixedType.php @@ -9,9 +9,7 @@ final class FakeFixedType implements FixedType { - public function __construct(private string $value) - { - } + public function __construct(private string $value) {} public function value(): string { diff --git a/tests/Fake/Type/FakeObjectCompositeType.php b/tests/Fake/Type/FakeObjectCompositeType.php index 8505dcf8..edabc6ce 100644 --- a/tests/Fake/Type/FakeObjectCompositeType.php +++ b/tests/Fake/Type/FakeObjectCompositeType.php @@ -18,8 +18,7 @@ public function __construct( private string $className = stdClass::class, /** @var array */ private array $generics = [] - ) { - } + ) {} public function className(): string { diff --git a/tests/Fake/Type/FakeObjectType.php b/tests/Fake/Type/FakeObjectType.php index 17664487..c280917c 100644 --- a/tests/Fake/Type/FakeObjectType.php +++ b/tests/Fake/Type/FakeObjectType.php @@ -20,9 +20,7 @@ final class FakeObjectType implements ObjectType /** * @param class-string $className */ - public function __construct(private string $className = stdClass::class) - { - } + public function __construct(private string $className = stdClass::class) {} public static function accepting(object ...$objects): self { diff --git a/tests/Fake/Type/Parser/FakeTypeParser.php b/tests/Fake/Type/Parser/FakeTypeParser.php index e8664eb9..78233717 100644 --- a/tests/Fake/Type/Parser/FakeTypeParser.php +++ b/tests/Fake/Type/Parser/FakeTypeParser.php @@ -28,7 +28,7 @@ public function parse(string $raw): Type $type = FakeType::from($raw); if ($type instanceof FakeType) { - throw new class ("Type `$raw` not handled by `FakeTypeParser`.") extends RuntimeException implements InvalidType { }; + throw new class ("Type `$raw` not handled by `FakeTypeParser`.") extends RuntimeException implements InvalidType {}; } return $type; diff --git a/tests/Fixture/Attribute/AttributeWithArguments.php b/tests/Fixture/Attribute/AttributeWithArguments.php index 095980d4..7a7c90ba 100644 --- a/tests/Fixture/Attribute/AttributeWithArguments.php +++ b/tests/Fixture/Attribute/AttributeWithArguments.php @@ -12,6 +12,5 @@ final class AttributeWithArguments public function __construct( public string $foo, public string $bar - ) { - } + ) {} } diff --git a/tests/Fixture/Attribute/BasicAttribute.php b/tests/Fixture/Attribute/BasicAttribute.php index 4a1ba1ce..90bff15d 100644 --- a/tests/Fixture/Attribute/BasicAttribute.php +++ b/tests/Fixture/Attribute/BasicAttribute.php @@ -7,6 +7,4 @@ use Attribute; #[Attribute] -final class BasicAttribute -{ -} +final class BasicAttribute {} diff --git a/tests/Fixture/Attribute/NestedAttribute.php b/tests/Fixture/Attribute/NestedAttribute.php index 65e29ce0..4cd4017c 100644 --- a/tests/Fixture/Attribute/NestedAttribute.php +++ b/tests/Fixture/Attribute/NestedAttribute.php @@ -12,6 +12,5 @@ final class NestedAttribute public function __construct( /** @var list */ public array $nestedAttributes, - ) { - } + ) {} } diff --git a/tests/Fixture/Attribute/PropertyTargetAttribute.php b/tests/Fixture/Attribute/PropertyTargetAttribute.php index 8b647d32..97fa87b4 100644 --- a/tests/Fixture/Attribute/PropertyTargetAttribute.php +++ b/tests/Fixture/Attribute/PropertyTargetAttribute.php @@ -5,6 +5,4 @@ use Attribute; #[Attribute(Attribute::TARGET_PROPERTY)] -final class PropertyTargetAttribute -{ -} +final class PropertyTargetAttribute {} diff --git a/tests/Fixture/Object/AbstractObject.php b/tests/Fixture/Object/AbstractObject.php index 3be154ed..5a28ef18 100644 --- a/tests/Fixture/Object/AbstractObject.php +++ b/tests/Fixture/Object/AbstractObject.php @@ -4,6 +4,4 @@ namespace CuyZ\Valinor\Tests\Fixture\Object; -abstract class AbstractObject -{ -} +abstract class AbstractObject {} diff --git a/tests/Fixture/Object/ObjectWithAttributes.php b/tests/Fixture/Object/ObjectWithAttributes.php index 73c881f7..a506fae2 100644 --- a/tests/Fixture/Object/ObjectWithAttributes.php +++ b/tests/Fixture/Object/ObjectWithAttributes.php @@ -16,13 +16,9 @@ final class ObjectWithAttributes #[AttributeWithArguments('foo', 'bar')] public bool $property; - public function __construct(#[PropertyTargetAttribute] public bool $promotedProperty) - { - } + public function __construct(#[PropertyTargetAttribute] public bool $promotedProperty) {} #[BasicAttribute] #[AttributeWithArguments('foo', 'bar')] - public function method(#[BasicAttribute] string $parameter): void - { - } + public function method(#[BasicAttribute] string $parameter): void {} } diff --git a/tests/Fixture/Object/ObjectWithNestedAttributes.php b/tests/Fixture/Object/ObjectWithNestedAttributes.php index 62d2bf3e..9346fb98 100644 --- a/tests/Fixture/Object/ObjectWithNestedAttributes.php +++ b/tests/Fixture/Object/ObjectWithNestedAttributes.php @@ -30,7 +30,5 @@ final class ObjectWithNestedAttributes new BasicAttribute(), new AttributeWithArguments('foo', 'bar'), ])] - public function method(#[BasicAttribute] string $parameter): void - { - } + public function method(#[BasicAttribute] string $parameter): void {} } diff --git a/tests/Fixture/Object/StringableObject.php b/tests/Fixture/Object/StringableObject.php index 621dc405..c84d02e7 100644 --- a/tests/Fixture/Object/StringableObject.php +++ b/tests/Fixture/Object/StringableObject.php @@ -8,9 +8,7 @@ final class StringableObject implements Stringable { - public function __construct(private string $value = 'foo') - { - } + public function __construct(private string $value = 'foo') {} public function __toString(): string { diff --git a/tests/Functional/Definition/Repository/Cache/Compiler/AttributesCompilerTest.php b/tests/Functional/Definition/Repository/Cache/Compiler/AttributesCompilerTest.php index e3b6256b..994312f9 100644 --- a/tests/Functional/Definition/Repository/Cache/Compiler/AttributesCompilerTest.php +++ b/tests/Functional/Definition/Repository/Cache/Compiler/AttributesCompilerTest.php @@ -54,7 +54,7 @@ public function test_compiles_native_php_attributes_for_class_with_attributes(): public function test_compiles_native_php_attributes_for_class_without_attributes(): void { - $reflection = new ReflectionClass(new class () { }); + $reflection = new ReflectionClass(new class () {}); $attributes = $this->compile(new NativeAttributes($reflection)); self::assertSame(AttributesContainer::empty(), $attributes); diff --git a/tests/Functional/Definition/Repository/Cache/Compiler/ClassDefinitionCompilerTest.php b/tests/Functional/Definition/Repository/Cache/Compiler/ClassDefinitionCompilerTest.php index 75a57e09..14370f9c 100644 --- a/tests/Functional/Definition/Repository/Cache/Compiler/ClassDefinitionCompilerTest.php +++ b/tests/Functional/Definition/Repository/Cache/Compiler/ClassDefinitionCompilerTest.php @@ -130,10 +130,6 @@ private function eval(string $code): mixed } } -final class SomeFinalClass -{ -} +final class SomeFinalClass {} -abstract class SomeAbstractClass -{ -} +abstract class SomeAbstractClass {} diff --git a/tests/Functional/Type/Parser/Lexer/GenericLexerTest.php b/tests/Functional/Type/Parser/Lexer/GenericLexerTest.php index 5278149a..1420123f 100644 --- a/tests/Functional/Type/Parser/Lexer/GenericLexerTest.php +++ b/tests/Functional/Type/Parser/Lexer/GenericLexerTest.php @@ -158,7 +158,7 @@ public function test_generic_with_non_matching_type_for_template_throws_exceptio /** * @template Template of string */ - new class () { }; + new class () {}; $className = $object::class; @@ -176,7 +176,7 @@ public function test_duplicated_template_name_throws_exception(): void * @template TemplateA * @template TemplateA */ - new class () { }; + new class () {}; $className = $object::class; @@ -193,7 +193,7 @@ public function test_invalid_template_type_throws_exception(): void /** * @template Template of InvalidType */ - new class () { }; + new class () {}; $className = $object::class; @@ -256,7 +256,7 @@ private function classWithOneTemplate(): string /** * @template TemplateA */ - new class () { }; + new class () {}; return $object::class; } @@ -269,7 +269,7 @@ private function classWithThreeTemplates(): string * @template TemplateB * @template TemplateC */ - new class () { }; + new class () {}; return $object::class; } @@ -280,7 +280,7 @@ private function classWithTemplateOfArrayKey(): string /** * @template TemplateA of array-key */ - new class () { }; + new class () {}; return $object::class; } @@ -289,46 +289,34 @@ private function classWithTemplateOfArrayKey(): string /** * @template T */ -abstract class SomeParentAbstractClass -{ -} +abstract class SomeParentAbstractClass {} /** * @template T */ -abstract class SomeOtherParentAbstractClass -{ -} +abstract class SomeOtherParentAbstractClass {} /** * @phpstan-ignore-next-line * @extends SomeParentAbstractClass * @extends SomeOtherParentAbstractClass */ -final class SomeChildClassWithSeveralExtendTags extends SomeParentAbstractClass -{ -} +final class SomeChildClassWithSeveralExtendTags extends SomeParentAbstractClass {} /** * @phpstan-ignore-next-line * @extends string */ -final class SomeChildClassWithInvalidExtendTag extends SomeParentAbstractClass -{ -} +final class SomeChildClassWithInvalidExtendTag extends SomeParentAbstractClass {} /** * @phpstan-ignore-next-line * @extends stdClass */ -final class SomeChildClassWithInvalidExtendTagClassName extends SomeParentAbstractClass -{ -} +final class SomeChildClassWithInvalidExtendTagClassName extends SomeParentAbstractClass {} /** * @phpstan-ignore-next-line * @extends SomeParentAbstractClass */ -final class SomeChildClassWithMissingGenericsInExtendTag extends SomeParentAbstractClass -{ -} +final class SomeChildClassWithMissingGenericsInExtendTag extends SomeParentAbstractClass {} diff --git a/tests/Integration/Cache/CacheWarmupTest.php b/tests/Integration/Cache/CacheWarmupTest.php index 68e00a27..bda77c3f 100644 --- a/tests/Integration/Cache/CacheWarmupTest.php +++ b/tests/Integration/Cache/CacheWarmupTest.php @@ -123,42 +123,22 @@ public static function constructorB(string $string, SomeObjectB $objectb): self } } -class SomeObjectA -{ -} +class SomeObjectA {} -class SomeObjectB -{ -} +class SomeObjectB {} -class SomeObjectC -{ -} +class SomeObjectC {} -class SomeObjectD -{ -} +class SomeObjectD {} -class SomeObjectE -{ -} +class SomeObjectE {} -class SomeObjectF -{ -} +class SomeObjectF {} -class SomeObjectG -{ -} +class SomeObjectG {} -class SomeObjectH -{ -} +class SomeObjectH {} -class SomeObjectI -{ -} +class SomeObjectI {} -class SomeObjectJ -{ -} +class SomeObjectJ {} diff --git a/tests/Integration/Mapping/ConstructorRegistrationMappingTest.php b/tests/Integration/Mapping/ConstructorRegistrationMappingTest.php index e1e92b9d..20f2175c 100644 --- a/tests/Integration/Mapping/ConstructorRegistrationMappingTest.php +++ b/tests/Integration/Mapping/ConstructorRegistrationMappingTest.php @@ -703,9 +703,7 @@ public static function namedConstructor(string $foo): self final class SomeClassWithSimilarNativeConstructorAndNamedConstructor { - public function __construct(public string $foo) - { - } + public function __construct(public string $foo) {} public static function namedConstructor(string $foo): self { @@ -718,9 +716,7 @@ public static function namedConstructor(string $foo): self final class SomeClassWithDifferentNativeConstructorAndNamedConstructor { - public function __construct(public string $foo, public int $bar) - { - } + public function __construct(public string $foo, public int $bar) {} public static function namedConstructor(string $foo): self { @@ -730,9 +726,7 @@ public static function namedConstructor(string $foo): self final class SomeClassWithPrivateNativeConstructor { - private function __construct(public string $foo) - { - } + private function __construct(public string $foo) {} public static function namedConstructorWithNoParameter(): self { @@ -762,9 +756,7 @@ public static function from(string $foo, int $bar): static; abstract class SomeAbstractClassWithStaticConstructor implements SomeInterfaceWithStaticConstructor { - final private function __construct(public string $foo, public int $bar) - { - } + final private function __construct(public string $foo, public int $bar) {} public static function from(string $foo, int $bar): static { @@ -772,13 +764,9 @@ public static function from(string $foo, int $bar): static } } -final class SomeClassWithInheritedStaticConstructor extends SomeAbstractClassWithStaticConstructor -{ -} +final class SomeClassWithInheritedStaticConstructor extends SomeAbstractClassWithStaticConstructor {} -final class SomeOtherClassWithInheritedStaticConstructor extends SomeAbstractClassWithStaticConstructor -{ -} +final class SomeOtherClassWithInheritedStaticConstructor extends SomeAbstractClassWithStaticConstructor {} final class SomeClassWithBothInheritedStaticConstructors { diff --git a/tests/Integration/Mapping/Fixture/DateInterval.php b/tests/Integration/Mapping/Fixture/DateInterval.php index 861074f2..b593be20 100644 --- a/tests/Integration/Mapping/Fixture/DateInterval.php +++ b/tests/Integration/Mapping/Fixture/DateInterval.php @@ -6,6 +6,4 @@ use DateInterval as PhpDateInterval; -final class DateInterval extends PhpDateInterval -{ -} +final class DateInterval extends PhpDateInterval {} diff --git a/tests/Integration/Mapping/InterfaceInferringMappingTest.php b/tests/Integration/Mapping/InterfaceInferringMappingTest.php index faa5529a..1b40535f 100644 --- a/tests/Integration/Mapping/InterfaceInferringMappingTest.php +++ b/tests/Integration/Mapping/InterfaceInferringMappingTest.php @@ -465,6 +465,4 @@ final class SomeClassThatInheritsInterfaceB implements SomeInterface public string $valueB; } -final class SomeClassThatInheritsInterfaceC implements SomeInterface -{ -} +final class SomeClassThatInheritsInterfaceC implements SomeInterface {} diff --git a/tests/Integration/Mapping/Object/GenericInheritanceTest.php b/tests/Integration/Mapping/Object/GenericInheritanceTest.php index 6a169f1f..88c18f43 100644 --- a/tests/Integration/Mapping/Object/GenericInheritanceTest.php +++ b/tests/Integration/Mapping/Object/GenericInheritanceTest.php @@ -56,6 +56,4 @@ abstract class SecondParentClassWithGenericTypes extends ParentClassWithGenericT /** * @extends SecondParentClassWithGenericTypes */ -final class ChildClassWithInheritedGenericType extends SecondParentClassWithGenericTypes -{ -} +final class ChildClassWithInheritedGenericType extends SecondParentClassWithGenericTypes {} diff --git a/tests/Integration/Mapping/Other/FlexibleCastingMappingTest.php b/tests/Integration/Mapping/Other/FlexibleCastingMappingTest.php index 71117d1c..ec736569 100644 --- a/tests/Integration/Mapping/Other/FlexibleCastingMappingTest.php +++ b/tests/Integration/Mapping/Other/FlexibleCastingMappingTest.php @@ -274,9 +274,7 @@ interface SomeInterfaceForClassWithNoProperties { } -final class SomeClassWithNoProperties implements SomeInterfaceForClassWithNoProperties -{ -} +final class SomeClassWithNoProperties implements SomeInterfaceForClassWithNoProperties {} interface SomeInterfaceForClassWithProperties { diff --git a/tests/Unit/Definition/NativeAttributesTest.php b/tests/Unit/Definition/NativeAttributesTest.php index 72ff27a3..9258f4af 100644 --- a/tests/Unit/Definition/NativeAttributesTest.php +++ b/tests/Unit/Definition/NativeAttributesTest.php @@ -24,9 +24,7 @@ public function test_empty_attributes_returns_empty_results(): void $object = new class () { public string $property; - public function method(string $parameter): void - { - } + public function method(string $parameter): void {} }; $reflections = [ diff --git a/tests/Unit/Definition/Repository/Reflection/ReflectionClassDefinitionRepositoryTest.php b/tests/Unit/Definition/Repository/Reflection/ReflectionClassDefinitionRepositoryTest.php index 6f226415..7ac9aecc 100644 --- a/tests/Unit/Definition/Repository/Reflection/ReflectionClassDefinitionRepositoryTest.php +++ b/tests/Unit/Definition/Repository/Reflection/ReflectionClassDefinitionRepositoryTest.php @@ -75,9 +75,7 @@ public function test_properties_can_be_retrieved(): void public function test_methods_can_be_retrieved(): void { $object = new class () { - public function __construct() - { - } + public function __construct() {} /** * @param string $parameterWithDocBlockType @@ -88,8 +86,7 @@ public function publicMethod( $parameterWithNoType, $parameterWithDocBlockType, string $optionalParameter = 'Optional parameter value' - ): void { - } + ): void {} public function publicMethodWithReturnType(): string { @@ -212,9 +209,7 @@ public function test_invalid_parameter_type_throws_exception(): void * @formatter:on * @phpstan-ignore-next-line */ - public function publicMethod($parameterWithInvalidType): void - { - } + public function publicMethod($parameterWithInvalidType): void {} })::class; $class = $this->repository->for(new NativeClassType($class)); @@ -232,9 +227,7 @@ public function test_invalid_method_return_type_throws_exception(): void * @return InvalidType * @phpstan-ignore-next-line */ - public function publicMethod($parameterWithInvalidType): void - { - } + public function publicMethod($parameterWithInvalidType): void {} })::class; $class = $this->repository->for(new NativeClassType($class)); @@ -252,9 +245,7 @@ public function test_invalid_parameter_default_value_throws_exception(): void * @param string $parameterWithInvalidDefaultValue * @phpstan-ignore-next-line */ - public function publicMethod($parameterWithInvalidDefaultValue = false): void - { - } + public function publicMethod($parameterWithInvalidDefaultValue = false): void {} })::class; $class = $this->repository->for(new NativeClassType($class)); @@ -271,9 +262,7 @@ public function test_parameter_with_non_matching_types_throws_exception(): void * @param string $parameterWithNotMatchingTypes * @phpstan-ignore-next-line */ - public function publicMethod(bool $parameterWithNotMatchingTypes): void - { - } + public function publicMethod(bool $parameterWithNotMatchingTypes): void {} })::class; $this->expectException(TypesDoNotMatch::class); @@ -381,11 +370,7 @@ public function test_class_with_unknown_type_alias_import_throws_exception(): vo abstract class AbstractClassWithPrivateConstructor { - private function __construct() - { - } + private function __construct() {} } -final class ClassWithInheritedPrivateConstructor extends AbstractClassWithPrivateConstructor -{ -} +final class ClassWithInheritedPrivateConstructor extends AbstractClassWithPrivateConstructor {} diff --git a/tests/Unit/Mapper/Object/NativeConstructorObjectBuilderTest.php b/tests/Unit/Mapper/Object/NativeConstructorObjectBuilderTest.php index 8cf3f017..3010637c 100644 --- a/tests/Unit/Mapper/Object/NativeConstructorObjectBuilderTest.php +++ b/tests/Unit/Mapper/Object/NativeConstructorObjectBuilderTest.php @@ -16,9 +16,7 @@ final class NativeConstructorObjectBuilderTest extends TestCase public function test_arguments_instance_stays_the_same(): void { $object = new class () { - public function __construct() - { - } + public function __construct() {} }; $class = FakeClassDefinition::fromReflection(new ReflectionClass($object)); @@ -33,9 +31,7 @@ public function __construct() public function test_build_object_with_constructor_returns_correct_object(): void { $object = new class ('foo', 'bar') { - public function __construct(public string $valueA, public string $valueB, public string $valueC = 'Some parameter default value') - { - } + public function __construct(public string $valueA, public string $valueB, public string $valueC = 'Some parameter default value') {} }; $class = FakeClassDefinition::fromReflection(new ReflectionClass($object)); diff --git a/tests/Unit/Type/Types/UndefinedObjectTypeTest.php b/tests/Unit/Type/Types/UndefinedObjectTypeTest.php index 2dd66bce..9fad82a5 100644 --- a/tests/Unit/Type/Types/UndefinedObjectTypeTest.php +++ b/tests/Unit/Type/Types/UndefinedObjectTypeTest.php @@ -35,7 +35,7 @@ public function test_string_value_is_correct(): void public function test_accepts_correct_values(): void { self::assertTrue($this->undefinedObjectType->accepts(new stdClass())); - self::assertTrue($this->undefinedObjectType->accepts(new class () { })); + self::assertTrue($this->undefinedObjectType->accepts(new class () {})); } public function test_does_not_accept_incorrect_values(): void diff --git a/tests/Unit/Utility/Priority/PrioritizedListTest.php b/tests/Unit/Utility/Priority/PrioritizedListTest.php index 21b5e29c..5e4e5d72 100644 --- a/tests/Unit/Utility/Priority/PrioritizedListTest.php +++ b/tests/Unit/Utility/Priority/PrioritizedListTest.php @@ -34,9 +34,7 @@ public function test_objects_are_sorted_by_priority(): void private function prioritizedObject(int $priority): HasPriority { return new class ($priority) implements HasPriority { - public function __construct(private int $priority) - { - } + public function __construct(private int $priority) {} public function priority(): int { diff --git a/tests/Unit/Utility/Reflection/Fixtures/ClassInSingleNamespace.php b/tests/Unit/Utility/Reflection/Fixtures/ClassInSingleNamespace.php index 7f14ab36..e285b3c7 100644 --- a/tests/Unit/Utility/Reflection/Fixtures/ClassInSingleNamespace.php +++ b/tests/Unit/Utility/Reflection/Fixtures/ClassInSingleNamespace.php @@ -16,6 +16,5 @@ public function __construct( public BarAlias $classInNamespaceWithAlias, public DateTimeImmutable $classInRootNamespaceWithoutAlias, public stdClassAlias $classInRootNamespaceWithAlias - ) { - } + ) {} } diff --git a/tests/Unit/Utility/Reflection/Fixtures/FunctionInRootNamespace.php b/tests/Unit/Utility/Reflection/Fixtures/FunctionInRootNamespace.php index 8c30b471..0f377dfb 100644 --- a/tests/Unit/Utility/Reflection/Fixtures/FunctionInRootNamespace.php +++ b/tests/Unit/Utility/Reflection/Fixtures/FunctionInRootNamespace.php @@ -8,5 +8,4 @@ function function_in_root_namespace( FooAlias $foo, BarAlias $bar -): void { -} +): void {} diff --git a/tests/Unit/Utility/Reflection/Fixtures/SubDir/Bar.php b/tests/Unit/Utility/Reflection/Fixtures/SubDir/Bar.php index 6a45f352..137aed7c 100644 --- a/tests/Unit/Utility/Reflection/Fixtures/SubDir/Bar.php +++ b/tests/Unit/Utility/Reflection/Fixtures/SubDir/Bar.php @@ -4,6 +4,4 @@ namespace CuyZ\Valinor\Tests\Unit\Utility\Reflection\Fixtures\SubDir; -final class Bar -{ -} +final class Bar {} diff --git a/tests/Unit/Utility/Reflection/Fixtures/SubDir/Foo.php b/tests/Unit/Utility/Reflection/Fixtures/SubDir/Foo.php index 1397ac98..07620ff6 100644 --- a/tests/Unit/Utility/Reflection/Fixtures/SubDir/Foo.php +++ b/tests/Unit/Utility/Reflection/Fixtures/SubDir/Foo.php @@ -4,6 +4,4 @@ namespace CuyZ\Valinor\Tests\Unit\Utility\Reflection\Fixtures\SubDir; -final class Foo -{ -} +final class Foo {} diff --git a/tests/Unit/Utility/Reflection/ReflectionTest.php b/tests/Unit/Utility/Reflection/ReflectionTest.php index 7728e2b9..81a2affc 100644 --- a/tests/Unit/Utility/Reflection/ReflectionTest.php +++ b/tests/Unit/Utility/Reflection/ReflectionTest.php @@ -54,9 +54,7 @@ public function test_reflection_signatures_are_correct(): void $class = (new class () { public string $property; - public function method(string $parameter): void - { - } + public function method(string $parameter): void {} })::class; $functions = require_once 'FakeFunctions.php'; @@ -207,8 +205,7 @@ public function test_docblock_return_type_is_fetched_correctly( public function test_docblock_return_type_with_no_docblock_returns_null(): void { - $callable = static function (): void { - }; + $callable = static function (): void {}; $type = Reflection::docBlockReturnType(new ReflectionFunction($callable)); @@ -232,8 +229,7 @@ public function test_docblock_var_type_is_fetched_correctly_with_property_promot public function __construct( /** @var non-empty-string */ public string $someProperty - ) { - } + ) {} }; $type = Reflection::docBlockType((new ReflectionMethod($class, '__construct'))->getParameters()[0]); @@ -417,8 +413,7 @@ public function objects_with_docblock_typed_properties(): iterable yield 'phpdoc @param' => [ new ReflectionParameter( /** @param string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'string', @@ -427,8 +422,7 @@ static function ($string): void { yield 'psalm @param standalone' => [ new ReflectionParameter( /** @psalm-param string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'string', @@ -440,8 +434,7 @@ static function ($string): void { * @psalm-param non-empty-string $string * @param string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'non-empty-string', @@ -453,8 +446,7 @@ static function ($string): void { * @param string $string * @psalm-param non-empty-string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'non-empty-string', @@ -463,8 +455,7 @@ static function ($string): void { yield 'phpstan @param standalone' => [ new ReflectionParameter( /** @phpstan-param string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'string', @@ -476,8 +467,7 @@ static function ($string): void { * @phpstan-param non-empty-string $string * @param string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'non-empty-string', @@ -489,8 +479,7 @@ static function ($string): void { * @param string $string * @phpstan-param non-empty-string $string */ - static function ($string): void { - }, + static function ($string): void {}, 'string', ), 'non-empty-string', @@ -498,6 +487,4 @@ static function ($string): void { } } -function some_function(): void -{ -} +function some_function(): void {}