Skip to content

Commit

Permalink
fixup! refactor: use php attributes to inject dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
juanlopez4691 committed Apr 18, 2024
1 parent 00c5312 commit aa76afc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/blocks/class-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Loader {
* @var Timber
*/
#[Inject]
private Timber $timber;
private Timber $timber; // @phpstan-ignore-line

/**
* Loads custom Gutenberg blocks.
Expand Down
6 changes: 3 additions & 3 deletions src/class-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ class Theme {
* @var CustomPostTypesLoader
*/
#[Inject]
private CustomPostTypesLoader $custom_post_types_loader;
private CustomPostTypesLoader $custom_post_types_loader; // @phpstan-ignore-line

/**
* The Custom_Taxonomies\Loader Instance.
*
* @var CustomTaxonomiesLoader
*/
#[Inject]
private CustomTaxonomiesLoader $custom_taxonomies_loader;
private CustomTaxonomiesLoader $custom_taxonomies_loader; // @phpstan-ignore-line

/**
* The Blocks\Loader Instance.
*
* @var BlocksLoader
*/
#[Inject]
private BlocksLoader $blocks_loader;
private BlocksLoader $blocks_loader; // @phpstan-ignore-line

/**
* Theme Naming Prefix.
Expand Down

0 comments on commit aa76afc

Please sign in to comment.