Skip to content

Commit

Permalink
Merge pull request #18 from alleyinteractive/hotfix/method-rename
Browse files Browse the repository at this point in the history
Renaming setApcu to avoid conflict with 2.1 composer
  • Loading branch information
srtfisher authored Sep 1, 2022
2 parents bf2f476 + fe50682 commit 5f72de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AutoloadGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function setDevMode($devMode = true)
* @param string|null $apcuPrefix
* @return void
*/
public function setApcu(bool $apcu, ?string $apcuPrefix = null)
public function setApcuMode(bool $apcu, ?string $apcuPrefix = null)
{
parent::setApcu($apcu, $apcuPrefix);

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function generateAutoloaderFile(Event $event): void
$this->io,
);

$this->generator->setApcu(
$this->generator->setApcuMode(
$this->composer->getConfig()->get('apcu-autoloader')
);

Expand Down

0 comments on commit 5f72de0

Please sign in to comment.