Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix deprecated dynamic property in php8.2 #166

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
});
}
}
}
}
Loading