[10.x] Uses PHP Native Type Declarations 🐘 (#6010)

* Adds basic typing around method's arguments and return types

* Adds missing `closure` type

* Adds typing on tests

* Fixes `RedirectIfAuthenticated`

* Fixes `Authenticate`

* Improves `RedirectIfAuthenticated` types

* Fixes user factory `unverified` return type
This commit is contained in:
Nuno Maduro
2023-01-03 09:35:24 +00:00
committed by GitHub
parent 21b826f3d3
commit 55af5469c3
19 changed files with 34 additions and 86 deletions

View File

@@ -9,10 +9,8 @@ class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function test_the_application_returns_a_successful_response()
public function test_the_application_returns_a_successful_response(): void
{
$response = $this->get('/');