Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Applied fixes from FlintCI #294

Merged
merged 1 commit into from
Jan 5, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Adapter/SymfonyCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function __construct(
array $types,
array $servers,
array $timeouts,
EventDispatcherInterface $eventDispatcher = null
?EventDispatcherInterface $eventDispatcher = null
) {
$this->router = $router;
$this->filesystem = $filesystem;
Expand Down
6 changes: 3 additions & 3 deletions src/Command/BaseCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ abstract class BaseCacheCommand extends ContainerAwareCommand
private $cacheManager;

public function __construct(
string $name = null,
CacheManagerInterface $cacheManager = null
?string $name = null,
?CacheManagerInterface $cacheManager = null
) {
parent::__construct($name);
if (null === $cacheManager) {
@trigger_error(sprintf(
'Not providing a cache manager to "%s" is deprecated since 3.x and will no longer be possible in 4.0',
\get_class($this)
static::class
), E_USER_DEPRECATED);
}
$this->cacheManager = $cacheManager;
Expand Down
2 changes: 1 addition & 1 deletion tests/Adapter/ApcCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ApcCacheTest extends TestCase
*/
private $cache;

public function setUp(): void
protected function setUp(): void
{
if (!\function_exists('apcu_store')) {
$this->markTestSkipped('APC is not installed');
Expand Down