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
Fix warnings that occur when the Accounts Manager page is loaded.
With perl 5.38 the sorting of users at the end of the
`pre_header_initialize` method in
`lib/WeBWorK/ContentGenerator/Instructor/UserList.pm` is now issuing the
warning `Implicit use of @_ in subroutine entry with signatured
subroutine is experimental at
/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/UserList.pm
line 239.`
This warning is really a false positive as `@_` is not actually used by
the sort methods. They instead use the global `$a` and `$b` variables.
However, perl thinks that since the arguments are not explicitly listed
that `@_` is being passed. To fix this the sort subroutines need to be
explicitly called with no arguments.
Note that this warning is only shown in the console. This means that if
you are running webwork2 via hypnotoad started from the webwork2 systemd
service, then you won't see these warnings.
0 commit comments