Skip to content

Commit

Permalink
🎨 Fix discrepancies introduced in #298
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 18, 2025
1 parent 2ec29a7 commit b3c2cfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/AcfComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class AcfComposer
/**
* Create a new Composer instance.
*/
public function __construct(protected Application $app)
public function __construct(public Application $app)
{
$this->manifest = Manifest::make($this);
}
Expand Down
12 changes: 3 additions & 9 deletions src/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ abstract class Composer implements ComposerContract
{
use HasCollection, InteractsWithPartial;

/**
* The ACF Composer instance.
*/
protected AcfComposer $composer;

/**
* The application instance.
*/
Expand All @@ -43,10 +38,9 @@ abstract class Composer implements ComposerContract
/**
* Create a new Composer instance.
*/
public function __construct(AcfComposer $composer)
public function __construct(protected AcfComposer $composer)
{
$this->composer = $composer;
$this->app = $composer->app;
$this->app = $this->composer->app;

$this->defaults = $this->collect($this->app->config->get('acf.defaults'))
->merge($this->defaults)
Expand Down Expand Up @@ -83,7 +77,7 @@ public function handle(): self
protected function call(string $hook): mixed
{
if (! method_exists($this, $hook)) {
return;
return null;
}

return $this->app->call([$this, $hook]);
Expand Down

0 comments on commit b3c2cfd

Please sign in to comment.