Skip to content

Commit

Permalink
fix: fix deprecated dynamic property in php8.2 (#166)
Browse files Browse the repository at this point in the history
* fix: fix deprecated dynamic property in php8.2

* update
  • Loading branch information
datlechin authored Oct 31, 2023
1 parent c3f099f commit 1d2c286
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Api/AttachForumSerializerAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

class AttachForumSerializerAttributes
{
/**
* @var SettingsRepositoryInterface
*/
protected $settings;

/**
* @param SettingsRepositoryInterface $settings
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Api/AttatchTagSerializerAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

class AttatchTagSerializerAttributes
{
/**
* @var SettingsRepositoryInterface
*/
protected $settings;

/**
* @param SettingsRepositoryInterface $settings
*/
Expand Down
25 changes: 25 additions & 0 deletions src/Controller/BlogItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@

class BlogItemController
{
/**
* @var Client
*/
protected $api;

/**
* @var UrlGenerator
*/
protected $url;

/**
* @var SettingsRepositoryInterface
*/
protected $settings;

/**
* @var TranslatorInterface
*/
protected $translator;

/**
* @var TagRepository
*/
protected $tagRepository;

public function __construct(Client $api, UrlGenerator $url, SettingsRepositoryInterface $settings, TagRepository $tagRepository, TranslatorInterface $translator)
{
$this->api = $api;
Expand Down
5 changes: 5 additions & 0 deletions src/Listeners/CreateBlogMetaOnDiscussionCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

class CreateBlogMetaOnDiscussionCreate
{
/**
* @var SettingsRepositoryInterface
*/
protected $settings;

/**
* CreateBlogMetaOnDiscussionCreate constructor.
*
Expand Down
7 changes: 6 additions & 1 deletion src/Query/FilterDiscussionsForBlogPosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

class FilterDiscussionsForBlogPosts
{
/**
* @var SettingsRepositoryInterface
*/
protected $settings;

/**
* FilterDiscussionsForBlogPosts constructor.
*
Expand Down Expand Up @@ -61,4 +66,4 @@ public function __invoke(FilterState $filter, QueryCriteria $queryCriteria)
});
}
}
}
}

0 comments on commit 1d2c286

Please sign in to comment.