psr7-cookies icon indicating copy to clipboard operation
psr7-cookies copied to clipboard

Trim whitespace from input values & cleanup

Open codemasher opened this issue 11 months ago • 0 comments

Hey, this PR trims the whitespace from input values and explicitly checks against an empty string '' so that falsey values may pass - the empty() check here would fail on a string value of 0:

https://github.com/hansott/psr7-cookies/blob/fdd4790274996a3d5a723fa32d1c82e2b319e8fc/src/SetCookie.php#L171

Further I did some cleanup and updated the GH Actions workflow run (removed the low/high dependency stuff - the only call was to "locked" without a lock file).

codemasher avatar Feb 26 '24 17:02 codemasher