Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / session_test / session_test.module
index b3ceff80a5cff5dfa9eeef2eab6cb8d44ed091b5..6eb48afbc7174892d66e711650666a55c237d705 100644 (file)
@@ -5,10 +5,12 @@
  * Test module.
  */
 
+use Drupal\user\UserInterface;
+
 /**
  * Implements hook_user_login().
  */
-function session_test_user_login($account) {
+function session_test_user_login(UserInterface $account) {
   if ($account->getUsername() == 'session_test_user') {
     // Exit so we can verify that the session was regenerated
     // before hook_user_login() was called.