Skip to content

Commit

Permalink
Merge pull request #16651 from raicabogdan/5.0.x
Browse files Browse the repository at this point in the history
Fix passing null of type string is deprecated warning
  • Loading branch information
niden authored Dec 25, 2024
2 parents 9806c09 + c5743b2 commit 53dfdc2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Fixed

- Fixed `Phalcon\Http\Response\Cookies`, `Phalcon\Http\Response\CookiesInterface` and `Phalcon\Http\Cookie` to use correct cookie default arguments, avoid deprecated null assign warning when trying to assign the same cookie twice [#16649](https://github.com/phalcon/cphalcon/issues/16649)
- Fixed `Phalcon\Encryption\Crypt` to use `strlen` instead of `mb_strlen` for padding calculations [#16642](https://github.com/phalcon/cphalcon/issues/16642)
- Fixed `Phalcon\Filter\Validation\Validator\File\MimeType::validate` to close the handle when using `finfo` [#16647](https://github.com/phalcon/cphalcon/issues/16647)
- Fixed `Phalcon\Mvc\Model\Manager::getRelationRecords` to explicitly set the `referencedModel` in the conditions along with the `referencedFields` [#16655](https://github.com/phalcon/cphalcon/pull/16655)
Expand Down
6 changes: 3 additions & 3 deletions phalcon/Http/Cookie.zep
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class Cookie extends AbstractInjectionAware implements CookieInterface
var value = null,
int expire = 0,
string path = "/",
bool secure = null,
string domain = null,
bool httpOnly = null,
bool secure = false,
string domain = "",
bool httpOnly = false,
array options = []
) {
let this->name = name,
Expand Down
6 changes: 3 additions & 3 deletions phalcon/Http/Response/Cookies.zep
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ class Cookies extends AbstractInjectionAware implements CookiesInterface
var value = null,
int expire = 0,
string path = "/",
bool secure = null,
string! domain = null,
bool httpOnly = null,
bool secure = false,
string! domain = "",
bool httpOnly = false,
array options = []
) -> <CookiesInterface> {
var cookie, encryption, container, response;
Expand Down
6 changes: 3 additions & 3 deletions phalcon/Http/Response/CookiesInterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ interface CookiesInterface
var value = null,
int expire = 0,
string path = "/",
bool secure = null,
string! domain = null,
bool httpOnly = null,
bool secure = false,
string! domain = "",
bool httpOnly = false,
array options = []
) -> <CookiesInterface>;

Expand Down

0 comments on commit 53dfdc2

Please sign in to comment.