Skip to content

"Could not process" after phpunit80 set applied #2594

@snapshotpl

Description

@snapshotpl
Subject Details
Rector version dev-master@b6aea6e

Current Behaviour

After run rector with phpunit80 set I started getting errors:

 [ERROR] Could not process                                                      
         "/var/www/module/Application/src/AbstractUuidInMemoryRepository.php"   
         file, due to:                                                          
         "Implement "PHPStan\PhpDocParser\Ast\PhpDoc\TemplateTagValueNode" to   
         "Rector\BetterPhpDocParser\Attributes\Ast\AttributeAwareNodeFactory::cr
         eateFromPhpDocValueNode"".

For class:

<?php

declare(strict_types=1);

namespace Application;

/**
 * @template T of object
 */
abstract class AbstractUuidInMemoryRepository
{
    /** @var UuidRepositoryStorage<T> */
    private $storage;

    /**
     * @param UuidRepositoryStorage<T> $storage
     */
    final public function __construct(UuidRepositoryStorage $storage)
    {
        $this->storage = $storage;
    }

    /**
     * @return UuidRepositoryStorage<T>
     */
    final protected function getStorage(): UuidRepositoryStorage
    {
        return $this->storage;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions