mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-05 02:43:32 +00:00
19 lines
608 B
PHP
19 lines
608 B
PHP
<?php
|
|
namespace App;
|
|
|
|
use function Vendor\Utils\format as vendorFormat;
|
|
|
|
class Caller {
|
|
public function callNoImport(): string {
|
|
// No use function for `format`. Caller is in \App, candidates live
|
|
// in \App\Utils and \Vendor\Utils. PHP runtime: Call to undefined
|
|
// function App\format. Resolver must emit NO edge.
|
|
return format('x');
|
|
}
|
|
|
|
public function callImported(): string {
|
|
// Imported via `use function Vendor\Utils\format as vendorFormat`.
|
|
// Resolver must emit an edge to Vendor\Utils\format.
|
|
return vendorFormat('x', 80);
|
|
}
|
|
}
|