Codeception / Codeception/module-phalcon4

Cookie not compatible with symfony/browser-kit

未关闭
#24 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
3
派生
8
PR 合并指标
30 天内没有已合并 PR

描述

In the old version of `symfony/browser-kit`, the Cookie's `__construct` is

```
public function __construct(string $name, ?string $value, string $expires = null, string $path = null, string $domain = '', bool $secure = false, bool $httponly = true, bool $encodedValue = false, string $samesite = null) { ... }
```

And in the Phalcon4, using cookie set with `expires` is only allow integer, so there will be `TypeError` when running the test.

```
[TypeError] Argument 3 passed to Symfony\Component\BrowserKit\Cookie::__construct() must be of the type string or null, int given, called in /root/.composer/vendor/codeception/module-phalcon4/src/Codeception/Lib/Connector/Phalcon4.php on line 156
```

Maybe convert the timestamp to UTC String for old symfony/browser-kit?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。