oldFunc(); } public static function triggerDependencyWithDeprecationFromInside(): void { $bar = new Bar(); $bar->newFunc(); } }