Comments (3)
Thanks a lot for your feedback on this!
What method's signature are you talking about, exactly?
The Cookie::setcookie(...)
method, which has been added as a replacement for PHP's native function of the same name, is fully compatible with the PHP function, as you can see here.
The constructor, on the other hand, has only one parameter, which is the cookie's name, as you can see here. All the other attributes on instances are set via the setters which cannot really be mixed up, right?
from php-cookie.
Oh, oops, you're right. I saw it doing $this->name = ... $this->value = ... etc and I guess I assumed the constructor was being passed all those parameters in order. Nothing to see here..
from php-cookie.
No problem, thank you!
from php-cookie.
Related Issues (20)
- Tests fail on PHP 5.x HOT 2
- Break up "buildCookieHeader" into separate accessors for the header's name and value HOT 1
- Incompatible with CSRF protection HOT 1
- tests fail on PHP 7.0.19 HOT 5
- Suggest to implement getCookie. HOT 4
- Why is the Cookie class 'final'? HOT 12
- Cookie Parse Error HOT 2
- QUESTION: Write & Close session method cleanly with class? HOT 1
- Consider droping PHP 5 and 7.0. HOT 3
- Append data to session HOT 4
- Request: method to test if the user is able to accept cookies HOT 5
- PHP 7.4.3RCE1 now calls rawurlencode for encoding cookie's value HOT 3
- [Question] How to set array in session HOT 2
- ResponseHeader::take removes all headers with the given name, ignoring the value prefix HOT 1
- Trouble setting `SameSite=None` cookie for cross-domain requests
- 'SID' in documentation not explained
- Support for CHIPS Partitioned cookies HOT 2
- PSR-1, PSR-2 and code style
- Integration with HTTPFoundation HOT 5
- Add getters for cookie properties HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cookie.