Skip to content

ReflectionType::__toString() is deprecated. It fails in PHP7.4 #1

@arnedesmedt

Description

@arnedesmedt

$type = (string) $method->getReturnType();

https://www.php.net/manual/en/reflectiontype.tostring.php

You can get the name from the https://www.php.net/manual/en/class.reflectionnamedtype.php
But I don't have any idea how to retrieve that object from the ReflectionMethod? Do you guys knows how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions