Make classes readonly when possible

This commit is contained in:
Alejandro Celaya
2024-11-09 09:55:51 +01:00
parent d6b103de83
commit 72f1e243b5
16 changed files with 40 additions and 40 deletions

View File

@@ -6,9 +6,9 @@ namespace Shlinkio\Shlink\Core\Crawling;
use Shlinkio\Shlink\Core\ShortUrl\Repository\CrawlableShortCodesQueryInterface;
class CrawlingHelper implements CrawlingHelperInterface
readonly class CrawlingHelper implements CrawlingHelperInterface
{
public function __construct(private readonly CrawlableShortCodesQueryInterface $query)
public function __construct(private CrawlableShortCodesQueryInterface $query)
{
}