You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error seems to be on line 152 of the vendor/cjmellor/level-up/src/Concerns/GiveExperience.php file when trying to look for a level higher than 4 which is the maximum set in my environment variables.
Could it be that I am missing some configuration?
I am using:
Docker version 20.10.17, build 100c701
PHP 8.2-fpm
Postgres 13
The text was updated successfully, but these errors were encountered:
cjmellor
changed the title
[Bug]: Attempt to read property "next_level_experience" on null
fix: Attempt to read property "next_level_experience" on null
Aug 1, 2023
What happened?
Reaching max level and calling
nextLevelAt
function throws errorAttempt to read property "next_level_experience" on null
How to reproduce the bug
I created 4 levels:
implement a route where I do this:
Run api calls to the route repeatedly
When the user reaches the maximum level, call the function
nextLevelAt
Environment Variables
LEVEL_CAP_ENABLED=true
LEVEL_CAP=4
LEVEL_CAP_POINTS_CONTINUE=true
AUDIT_POINTS=true
Package Version
0.0.5
PHP Version
8.2.8
Laravel Version
10.10
Which operating systems does with happen with?
macOS
Notes
The error seems to be on line 152 of the
vendor/cjmellor/level-up/src/Concerns/GiveExperience.php
file when trying to look for a level higher than 4 which is the maximum set in my environment variables.Could it be that I am missing some configuration?
I am using:
The text was updated successfully, but these errors were encountered: