Codeception / module-phalcon4

Phalcon 4 module for Codeception
https://codeception.com/docs/modules/Phalcon4
MIT License
3 stars 8 forks source link

Fix Phalcon bug where Expiration is returned as int #19

Closed dcolt closed 2 years ago

dcolt commented 2 years ago

Phalcons Cookie claims to return a string, but the actual code is an int returned.

The constructor only takes it as an int: https://github.com/phalcon/cphalcon/blob/4.1.2-release/phalcon/Http/Cookie.zep#L98 The property is mixed (but loosely typed as int): https://github.com/phalcon/cphalcon/blob/4.1.2-release/phalcon/Http/Cookie.zep#L37 The return function is marked as string: https://github.com/phalcon/cphalcon/blob/4.1.2-release/phalcon/Http/Cookie.zep#L193 The setter function is also typed to int: https://github.com/phalcon/cphalcon/blob/4.1.2-release/phalcon/Http/Cookie.zep#L555

If necessary, I can provide an screenshot of the debug information that occurs.