Spot the bug in proxy forwarding

from Magic methods
PHP 8.3.33 intermediate 4 min 1 issue to find

Find the interface and authorization defect in this proxy.

php
<?php
final class AdminProxy
{
    public function __construct(private object $service) {}
    public function __call(string $name, array $arguments): mixed
    {
        return $this->service->$name(...$arguments);
    }
}
Open in playground
Report an error