Skip to content

Commit 5088121

Browse files
committed
[#.x] - phpcs
1 parent a53936d commit 5088121

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Domain/Components/DataSource/TransportRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
* @phpstan-import-type TLoginResponsePayload from UserTypes
2222
* @phpstan-import-type TUserDbRecord from UserTypes
2323
* @phpstan-import-type TUserRecord from UserTypes
24-
*/
25-
/**
24+
*
2625
* Note: The 'readonly' keyword was intentionally removed from this class.
2726
* Properties $sessionToken and $sessionUser are mutable to support session
2827
* management, allowing updates to the current session state. This change
2928
* removes immutability guarantees, but is necessary for the intended use.
3029
*/
3130
final class TransportRepository
31+
{
3232
private ?Token $sessionToken = null;
3333

3434
private ?UserTransport $sessionUser = null;

src/Domain/Components/DataSource/User/UserRepository.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919

2020
/**
2121
* @phpstan-import-type TUserRecord from UserTypes
22+
*
23+
* The 'final' keyword was intentionally removed from this class to allow
24+
* extension for testing purposes (e.g., mocking in unit tests).
25+
*
26+
* Please avoid extending this class in production code unless absolutely necessary.
2227
*/
23-
// The 'final' keyword was intentionally removed from this class to allow extension for testing purposes (e.g., mocking in unit tests).
24-
// Please avoid extending this class in production code unless absolutely necessary.
2528
class UserRepository
2629
{
2730
public function __construct(

0 commit comments

Comments
 (0)