-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined constant shown #990
Comments
@victormacko yesterday I've noticed that if you prefix global const with |
The only way i've been able to reproduce this so far is occasionally in prod -- prefer not to be testing code in prod like that, and due to it's occasional nature, it's hard to reproduce in staging. Thanks in advance for your help - it's super appreciated. |
Also handled in https://github.com/symfony/symfony/blob/6.2/src/Symfony/Component/VarExporter/ProxyHelper.php#L318 for inspiration. |
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
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.
The text was updated successfully, but these errors were encountered: