Last analyzed 429f112 3 days ago
Default analysis branch is
Currently analyzing run
Invalid usage of class constant fetch expression PHP-W1006
Bug risk
18 days agoa year old
Access to constant ACTIVE on an unknown class SemesterStatus
19            $extern_id = Role::getObjectIdByName(Role::COLLEGIST, 'extern');
20            $collegist->roles()->detach(Role::firstWhere('name', Role::COLLEGIST)->id);
21            $collegist->roles()->attach(Role::firstWhere('name', Role::COLLEGIST)->id, ['object_id' => $extern_id]);
22            $collegist->setStatusFor(Semester::current(), SemesterStatus::ACTIVE);23        }
24    }
25