Should the return type not be anonymous//src/AnonymizeTrait.php$0?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
23
*/
24
1
public static function convertToAnonymous($object)
25
{
26
1
$reflexion = new \ReflectionClass($object);
27
$class = new class extends DynamicObject {
28
};
29
30
1
foreach ($reflexion->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.