Migrate to readonly properties

This commit is contained in:
Yassine Guedidi
2025-04-05 13:59:36 +02:00
parent a107773c11
commit ca018c77e3
71 changed files with 203 additions and 199 deletions

View File

@ -13,10 +13,10 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
* GrabySiteConfigBuilder constructor.
*/
public function __construct(
private ConfigBuilder $grabyConfigBuilder,
private TokenStorageInterface $token,
private SiteCredentialRepository $credentialRepository,
private LoggerInterface $logger,
private readonly ConfigBuilder $grabyConfigBuilder,
private readonly TokenStorageInterface $token,
private readonly SiteCredentialRepository $credentialRepository,
private readonly LoggerInterface $logger,
) {
}

View File

@ -9,10 +9,10 @@ use Wallabag\ExpressionLanguage\AuthenticatorProvider;
class LoginFormAuthenticator
{
private ExpressionLanguage $expressionLanguage;
private readonly ExpressionLanguage $expressionLanguage;
public function __construct(
private HttpBrowser $browser,
private readonly HttpBrowser $browser,
AuthenticatorProvider $authenticatorProvider,
) {
$this->expressionLanguage = new ExpressionLanguage(null, [$authenticatorProvider]);