@@ -18,7 +18,7 @@ trait InteractsWithAuthentication
1818     * $I->amActingAs($user); 
1919     * ``` 
2020     */ 
21-     public  function  amActingAs (Authenticatable $ userstring  $ guardNamenull ): void 
21+     public  function  amActingAs (Authenticatable $ user? string  $ guardNamenull ): void 
2222    {
2323        if  (property_exists ($ user'wasRecentlyCreated ' ) && $ userwasRecentlyCreated ) {
2424            $ userwasRecentlyCreated  = false ;
@@ -47,7 +47,7 @@ public function amActingAs(Authenticatable $user, string $guardName = null): voi
4747     * @param Authenticatable|array $user 
4848     * @param string|null $guardName 
4949     */ 
50-     public  function  amLoggedAs ($ userstring  $ guardNamenull ): void 
50+     public  function  amLoggedAs ($ user? string  $ guardNamenull ): void 
5151    {
5252        if  ($ userinstanceof  Authenticatable) {
5353            $ this getAuth ()->login ($ user
@@ -69,7 +69,7 @@ public function amLoggedAs($user, string $guardName = null): void
6969     * $I->assertAuthenticatedAs($user); 
7070     * ``` 
7171     */ 
72-     public  function  assertAuthenticatedAs (Authenticatable $ userstring  $ guardNamenull ): void 
72+     public  function  assertAuthenticatedAs (Authenticatable $ user? string  $ guardNamenull ): void 
7373    {
7474        $ expected$ this getAuth ()->guard ($ guardNameuser ();
7575
@@ -97,7 +97,7 @@ public function assertAuthenticatedAs(Authenticatable $user, string $guardName =
9797     * ]); 
9898     * ``` 
9999     */ 
100-     public  function  assertCredentials (array  $ credentialsstring  $ guardNamenull ): void 
100+     public  function  assertCredentials (array  $ credentials? string  $ guardNamenull ): void 
101101    {
102102        $ this assertTrue (
103103            $ this hasCredentials ($ credentials$ guardName'The given credentials are invalid. ' 
@@ -115,7 +115,7 @@ public function assertCredentials(array $credentials, string $guardName = null):
115115     * ]); 
116116     * ``` 
117117     */ 
118-     public  function  assertInvalidCredentials (array  $ credentialsstring  $ guardNamenull ): void 
118+     public  function  assertInvalidCredentials (array  $ credentials? string  $ guardNamenull ): void 
119119    {
120120        $ this assertFalse (
121121            $ this hasCredentials ($ credentials$ guardName'The given credentials are valid. ' 
@@ -130,7 +130,7 @@ public function assertInvalidCredentials(array $credentials, string $guardName =
130130     * $I->dontSeeAuthentication(); 
131131     * ``` 
132132     */ 
133-     public  function  dontSeeAuthentication (string  $ guardNamenull ): void 
133+     public  function  dontSeeAuthentication (? string  $ guardNamenull ): void 
134134    {
135135        $ this assertFalse ($ this isAuthenticated ($ guardName'The user is authenticated ' );
136136    }
@@ -156,15 +156,15 @@ public function logout(): void
156156     * $I->seeAuthentication(); 
157157     * ``` 
158158     */ 
159-     public  function  seeAuthentication (string  $ guardNamenull ): void 
159+     public  function  seeAuthentication (? string  $ guardNamenull ): void 
160160    {
161161        $ this assertTrue ($ this isAuthenticated ($ guardName'The user is not authenticated ' );
162162    }
163163
164164    /** 
165165     * Return true if the credentials are valid, false otherwise. 
166166     */ 
167-     protected  function  hasCredentials (array  $ credentialsstring  $ guardNamenull ): bool 
167+     protected  function  hasCredentials (array  $ credentials? string  $ guardNamenull ): bool 
168168    {
169169        /** @var GuardHelpers $guard */ 
170170        $ guard$ this getAuth ()->guard ($ guardName
0 commit comments