bizley / yii2-cookiemonster

Yii extension to manage cookie warning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in line 203 of CookieMonster.php

meyergru opened this issue · comments

When setting a cookie domain, there will be an error:

yii\base\ErrorException:2] exception 'yii\base\ErrorException' with message 'preg_match() expects at least 2 parameters, 1 given' in /home/xyz/vendor/bizley/cookiemonster/src/CookieMonster.php:203

This is correct, as preg_match must have 2 parameters at least. I believe the 2nd parameter should be $value.

Thanks!

Great work. But by your refactoring of parameters from 'cookie' into 'content', the README.md becomes wrong, e.g. the "domain" parameter must be moved now.

I'm not sure what are you referring to. Could you elaborate?
I'm pretty sure I have not moved parameters...

+1, you are right. I just looked at the diff and saw domain now below 'content', but the @vars are above the sections... all is fine now. Thanks!