Codeception / Codeception/module-phalcon4

Cookie not compatible with symfony/browser-kit

オープン
#24 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。