phalcon / cphalcon

High performance, full-stack PHP framework delivered as a C extension.
https://phalcon.io
BSD 3-Clause "New" or "Revised" License
10.79k stars 1.96k forks source link

Fix passing null of type string is deprecated warning #16651

Open raicabogdan opened 1 month ago

raicabogdan commented 1 month ago

Hello!

In raising this pull request, I confirm the following:

Small description of change: Ensure null type deprecation warnings are avoided, happens if someone creates the same cookie twice eg:

$this->cookies->set("test", "test value");
$this->cookies->set("test", "test value");

it will cause the deprecated warning message.

Thanks