Skip to content

Commit 28b0378

Browse files
authored
Merge #56 - Fix misspelling of APCu
Fix misspelling of APCu
2 parents 0b0b217 + 925a5d4 commit 28b0378

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ If you are using `Loader`, pass it an `ApcuCacheFactory` _before_ getting the tr
134134

135135
```php
136136
PhpMyAdmin\MoTranslator\Loader::setCacheFactory(
137-
new PhpMyAdmin\MoTranslator\Cache\AcpuCacheFactory()
137+
new PhpMyAdmin\MoTranslator\Cache\ApcuCacheFactory()
138138
);
139139
$loader = new PhpMyAdmin\MoTranslator\Loader();
140140

@@ -160,7 +160,7 @@ to the `ApcuCacheFactory` or when instantiating `ApcuCache`:
160160

161161
```php
162162
PhpMyAdmin\MoTranslator\Loader::setCacheFactory(
163-
new PhpMyAdmin\MoTranslator\Cache\AcpuCacheFactory(
163+
new PhpMyAdmin\MoTranslator\Cache\ApcuCacheFactory(
164164
3600, // cache for 1 hour
165165
true, // reload on cache miss
166166
'custom_' // custom prefix for cache entries

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"vimeo/psalm": "^6.8"
4343
},
4444
"suggest": {
45-
"ext-apcu": "Needed for ACPu-backed translation cache"
45+
"ext-apcu": "Needed for APCu-backed translation cache"
4646
},
4747
"autoload": {
4848
"psr-4": {

src/Cache/ApcuCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(
3333
private string $prefix = 'mo_',
3434
) {
3535
if (! (function_exists('apcu_enabled') && apcu_enabled())) {
36-
throw new CacheException('ACPu extension must be installed and enabled');
36+
throw new CacheException('APCu extension must be installed and enabled');
3737
}
3838

3939
$this->ensureTranslationsLoaded();

tests/Cache/ApcuCacheFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function setUp(): void
2828
return;
2929
}
3030

31-
$this->markTestSkipped('ACPu extension is not installed and enabled for CLI');
31+
$this->markTestSkipped('APCu extension is not installed and enabled for CLI');
3232
}
3333

3434
protected function tearDown(): void

tests/Cache/ApcuCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function setUp(): void
3232
return;
3333
}
3434

35-
$this->markTestSkipped('ACPu extension is not installed and enabled for CLI');
35+
$this->markTestSkipped('APCu extension is not installed and enabled for CLI');
3636
}
3737

3838
protected function tearDown(): void

tests/Cache/ApcuDisabledTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testConstructorApcuNotEnabledThrowsException(): void
2121
}
2222

2323
$this->expectException(CacheException::class);
24-
$this->expectExceptionMessage('ACPu extension must be installed and enabled');
24+
$this->expectExceptionMessage('APCu extension must be installed and enabled');
2525
new ApcuCache(new MoParser(null), 'foo', 'bar');
2626
}
2727
}

0 commit comments

Comments
 (0)