Skip to content

Commit

Permalink
Remove readonly to be compatible with PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroemkenjw committed Dec 5, 2024
1 parent 88b33e6 commit 8032c7b
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/NotifySearchEngineCommand.php
Original file line number Diff line number Diff line change
@@ -32,9 +32,9 @@ class NotifySearchEngineCommand extends Command
* Will be called by DI, so please don't add extbase classes with inject methods here.
*/
public function __construct(
readonly protected SearchEngineNotifier $searchEngineNotifier,
readonly protected StackRepository $stackRepository,
readonly protected LoggerInterface $logger,
protected SearchEngineNotifier $searchEngineNotifier,
protected StackRepository $stackRepository,
protected LoggerInterface $logger,
) {
parent::__construct();
}
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/StackRepository.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
/**
* Repository to collect records from table "tx_indexnow_stack"
*/
readonly class StackRepository
class StackRepository
{
private const TABLE_NAME = 'tx_indexnow_stack';

Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
/**
* Prevent informing IndexNow about pages with activated no_index property.
*/
readonly class RespectPagesWithNoIndexEventListener
class RespectPagesWithNoIndexEventListener
{
public function __invoke(ModifyPageUidEvent $modifyPageUidEvent): void
{
2 changes: 1 addition & 1 deletion Classes/Hook/DataHandlerHook.php
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@
/**
* Hook into DataHandler to submit a re-index request to indexnow.org
*/
readonly class DataHandlerHook
class DataHandlerHook
{
public function __construct(
protected ExtConf $extConf,
2 changes: 1 addition & 1 deletion Classes/Notifier/SearchEngineNotifier.php
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
/**
* Service to communicate with the search engine
*/
readonly class SearchEngineNotifier
class SearchEngineNotifier
{
public function __construct(
protected RequestFactory $requestFactory,

0 comments on commit 8032c7b

Please sign in to comment.