php-aop icon indicating copy to clipboard operation
php-aop copied to clipboard

Resolve magic constants to a resolved path

Open djschilling opened this issue 1 year ago • 7 comments

I have some php code that looks like this:

    public function checkInternalGroupPermissionForPerson(string $auth, ?int $personId) {
        include_once dirname(__DIR__, 3) . '/churchdb/churchdb_db.php';
        $groups = getMyGroupIdsWhereIAmAllowed($auth);
        $personIds = churchdb_getAllPeopleIdsFromGroups($groups);

        return isset($personIds[$personId]);
    }

The lives in a class for which php-aop creates a proxy. The file churchdb_db.php does not need a proxy and so the include does not work. How can i solve this?

djschilling avatar Nov 07 '23 09:11 djschilling