From f06ac389f35c9a132f5baab9f26ec7ce4e624e6b Mon Sep 17 00:00:00 2001 From: Tess Sluijter-Stek Date: Tue, 10 Jun 2025 20:36:04 +0200 Subject: [PATCH 1/2] Explicit null of User array. --- src/Infrastructure/Persistence/User/InMemoryUserRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/Persistence/User/InMemoryUserRepository.php b/src/Infrastructure/Persistence/User/InMemoryUserRepository.php index b85a74fa3..43976e61e 100644 --- a/src/Infrastructure/Persistence/User/InMemoryUserRepository.php +++ b/src/Infrastructure/Persistence/User/InMemoryUserRepository.php @@ -18,7 +18,7 @@ class InMemoryUserRepository implements UserRepository /** * @param User[]|null $users */ - public function __construct(array $users = null) + public function __construct(array|null $users = null) { $this->users = $users ?? [ 1 => new User(1, 'bill.gates', 'Bill', 'Gates'), From 6db053605c6aa6e9e094ab2cc46d972f221279e6 Mon Sep 17 00:00:00 2001 From: Tess Sluijter-Stek Date: Tue, 10 Jun 2025 20:39:16 +0200 Subject: [PATCH 2/2] Migrated PHPUnit XML configuration file to new schema. --- phpunit.xml | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index f83040094..71345e1cb 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,27 +1,13 @@ - - - - ./tests/ - - - - - ./src/ - - + + + + + ./src/ + + + + + ./tests/ + +