setReturnsReference(strtolower($name) === '__get'); if (! $originalClass->hasMethod($name)) { return; } $originalMethod = $originalClass->getMethod($name); $originalReturnType = $originalMethod->getReturnType(); $this->setReturnsReference($originalMethod->returnsReference()); if ($originalReturnType instanceof ReflectionNamedType) { $this->setReturnType(($originalReturnType->allowsNull() && $originalReturnType->getName() !== 'mixed' ? '?' : '') . $originalReturnType->getName()); } elseif ($originalReturnType instanceof ReflectionUnionType || $originalReturnType instanceof ReflectionIntersectionType) { $returnType = []; foreach ($originalReturnType->getTypes() as $type) { $returnType[] = $type->getName(); } $this->setReturnType(implode($originalReturnType instanceof ReflectionIntersectionType ? '&' : '|', $returnType)); } elseif ($originalReturnType) { throw new LogicException('Unexpected ' . get_class($type)); } } public function setBody($body): LaminasMethodGenerator { if ((string) $this->getReturnType() === 'void') { $body = preg_replace('/return ([^;]++;)/', '\1 return;', $body); } return parent::setBody($body); } } __halt_compiler();----SIGNATURE:----nhRW6pyj9i7iZPFFEMQ9BzYeG183A38U+v4gAu0/843WN+8mGVt20HpUtWNsI0GDb8eo8ybkGe1PsFHzOUkzmNq5PSNWbvUjNtJv5RVDELxmgzih4ZI9JWJw84pit11p080etbbWWa+EK0Lx0RvWUA4HRqaBxoXrRQziSFdA+Pc9AQPwCoALyl905FmAu4bke3aLlQQNAElhKVlTAz8u1E4Wm5iwZpZnMJwTUs4O9CETaMJ5Opu/tN5rAL/jGe2PUxJ1T1szgaHV1qDOgPOF/vIa9u6IE4ALUTscOaaCfO7OcVibZO5mxWgePhn5CAyjgykYE5G3EkxwH4+3c6bqp2rmPTeouQOZY60oHAMsnaQ7y/RFN0G8tWfv1PkVh2eShc7pLBNyKXx+evUYe63LHZoaF7f0gVJuvyKKShSclESqTUfUI6l91qNXWaD0Mwyva9icTUAUtRmGsiIER/429grr/rG9vKqQ0mzMtaVtcOaV1dZ4xNxaQ3GcjKcpwomqVOC3OaNhAWXByQ6WV1BvnkX++FQ12akic0j2HT8/IN3WiBsEZ2PL7b0F8DsjRpBV7awN7eQOPaO0woHKn26Qppo9IGJQ2APZUYwHd7QrVn46Ss5CxQ5E7bKx4HFDjY7AlbiHoyUueCawK/npctLvUuhtqdos9WetHC/lvQwWDi4=----ATTACHMENT:----OTMxMDIwNDkzOTkzMzE1NiA1Mzc5MTEyODkyMTU4ODUwIDM4Njc2MTIwODAzNzYzOA==