Skip to content

Commit

Permalink
Fix parameter order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
spotbot2k committed Jan 30, 2022
1 parent c78a058 commit 22f8d9b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Helper/ExamHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ class ExamHelper

private $attemptResetInterval;

public function __construct(
string $defaultStudentClass,
int $attemptResetInterval = 0,
Security $security
) {
public function __construct(string $defaultStudentClass, int $attemptResetInterval, Security $security)
{
$user = $security->getUser();
$class = sprintf("Pimcore\Model\DataObject\%s", $defaultStudentClass);
if ($user instanceof $class) {
Expand Down

0 comments on commit 22f8d9b

Please sign in to comment.