Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about redis error #783

Closed
jinmarcus opened this issue Oct 19, 2017 · 4 comments
Closed

about redis error #783

jinmarcus opened this issue Oct 19, 2017 · 4 comments

Comments

@jinmarcus
Copy link

jinmarcus commented Oct 19, 2017

Change cache configuration to redis

public $handler = 'redis';

The following is wrong:

Argument 1 passed to CodeIgniter\Cache\Handlers\RedisHandler::__construct() must be of the type array, object given, called in ...

RedisHandler.php
modify these:

	public function __construct($config)
	{
		$config = (array)$config;
		$this->prefix = $config['prefix'] ?? '';

		if ( ! empty($config))
		{
			$this->config = array_merge($this->config, $config);
		}
	}

Can run!

@lonnieezell
Copy link
Member

Good catch. Care to submit a PR for this?

@jinmarcus
Copy link
Author

I've submitted a PR.

@lonnieezell
Copy link
Member

@jinmarcus I don't see any pull requests for this listed.

@jinmarcus
Copy link
Author

jinmarcus commented Oct 24, 2017

#792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants