doctrine / doctrine/common

Undefined constant shown

Open
#990 3 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
PHP
Stars
5.8k
Forks
284
PR merge metrics
No merged PRs in 30d

Description

It looks like the error reported in #983 is still happening - using PHP 8.1;

Uncaught PHP Exception Error: "Undefined constant "App\Entity\Member\AUTH_TYPE_ANY"" at /tmp/cache/prod/doctrine/orm/Proxies/__CG__AppEntityMemberMember.php line 1309

Exception: Error
* Undefined constant "App\Entity\Member\AUTH_TYPE_ANY"

**Stacktrace;**

/tmp/cache/prod/doctrine/orm/Proxies/__CG__AppEntityMemberMember.php:1309
/var/task/src/Entity/Member/Member.php:2864
/tmp/cache/prod/doctrine/orm/Proxies/__CG__AppEntityMemberMember.php:1809
/var/task/src/Entity/Member/Member.php:2835
/tmp/cache/prod/doctrine/orm/Proxies/__CG__AppEntityMemberMember.php:1798
/var/task/src/Service/Event/MyService.php:272

**Code;**
This is referring to this method signature;

public function isMemberAuthorised(
string $section,
int $level_required,
$type = AUTH_TYPE_ANY,
$group = AUTH_GROUP_ANY
): bool {
...
}

Let me know if you need any more info - happy to help where I can.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.