Skip to content

[TypeDeclaration] Extend ReturnTypeDeclarationRector with incorrect types override#1938

Merged
TomasVotruba merged 2 commits intomasterfrom
correct-return-types
Aug 31, 2019
Merged

[TypeDeclaration] Extend ReturnTypeDeclarationRector with incorrect types override#1938
TomasVotruba merged 2 commits intomasterfrom
correct-return-types

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

class SomeClass
{
    private $decodedContents;

    public function __construct(?array $decodedContents)
    {
        $this->decodedContents = $decodedContents;
    }


-    public function getDecodedContents(): array
+    public function getDecodedContents(): ?array
    {
        return $this->decodedContents;
    }
}

@TomasVotruba TomasVotruba merged commit 3aa78bb into master Aug 31, 2019
@TomasVotruba TomasVotruba deleted the correct-return-types branch August 31, 2019 22:14
TomasVotruba added a commit that referenced this pull request Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant