Skip to content

Commit

Permalink
[BCB] Removed ClassReflection::getNativeMethods(), use getNativeRefle…
Browse files Browse the repository at this point in the history
…ction() instead
  • Loading branch information
ondrejmirtes committed Sep 12, 2021
1 parent 1cc6c81 commit d2c1446
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Reflection/ClassReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,20 +434,6 @@ public function getNativeMethod(string $methodName): MethodReflection
return $this->getPhpExtension()->getNativeMethod($this, $methodName);
}

/**
* @deprecated Use ClassReflection::getNativeReflection() instead.
* @return MethodReflection[]
*/
public function getNativeMethods(): array
{
$methods = [];
foreach ($this->reflection->getMethods() as $method) {
$methods[] = $this->getNativeMethod($method->getName());
}

return $methods;
}

public function hasConstructor(): bool
{
return $this->findConstructor() !== null;
Expand Down

0 comments on commit d2c1446

Please sign in to comment.