Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^11.5",
"rector/jack": "^0.5.1",
"rector/rector-src": "dev-main",
"rector/rector-src": "dev-bump-phpstan-226",
"rector/swiss-knife": "^2.3",
"rector/type-perfect": "^2.1",
"symplify/easy-coding-standard": "^13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Rector\Tests\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDecl
final class NullableTrioDocblock
{
/**
* @return int|string|null
* @return int|null|string
*/
public function run($value)
{
Expand Down
22 changes: 11 additions & 11 deletions src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@
/**
* @see https://wiki.php.net/rfc/internal_method_return_types#proposal
*/
final class PhpDocFromTypeDeclarationDecorator
final readonly class PhpDocFromTypeDeclarationDecorator
{
/**
* @var ClassMethodWillChangeReturnType[]
*/
private array $classMethodWillChangeReturnTypes = [];
private array $classMethodWillChangeReturnTypes;

public function __construct(
private readonly StaticTypeMapper $staticTypeMapper,
private readonly PhpDocInfoFactory $phpDocInfoFactory,
private readonly NodeNameResolver $nodeNameResolver,
private readonly PhpDocTypeChanger $phpDocTypeChanger,
private readonly PhpAttributeGroupFactory $phpAttributeGroupFactory,
private readonly ReflectionResolver $reflectionResolver,
private readonly PhpAttributeAnalyzer $phpAttributeAnalyzer,
private readonly PhpVersionProvider $phpVersionProvider,
private readonly AstResolver $astResolver
private StaticTypeMapper $staticTypeMapper,
private PhpDocInfoFactory $phpDocInfoFactory,
private NodeNameResolver $nodeNameResolver,
private PhpDocTypeChanger $phpDocTypeChanger,
private PhpAttributeGroupFactory $phpAttributeGroupFactory,
private ReflectionResolver $reflectionResolver,
private PhpAttributeAnalyzer $phpAttributeAnalyzer,
private PhpVersionProvider $phpVersionProvider,
private AstResolver $astResolver
) {
$this->classMethodWillChangeReturnTypes = [
// @todo how to make list complete? is the method list needed or can we use just class names?
Expand Down
Loading