99 Commits

Author SHA1 Message Date
Vincent de Lau 402d35bcb9 Merge pull request #95 from Stilch/add-param-and-return-type-hints
Add return typehints

Since [psr/http-message version 2.0](https://packagist.org/packages/psr/http-message#2.0.0), the above interfaces have been updated to add return type declarations.
https://www.php-fig.org/psr/psr-7/meta/
2.0
2023-04-04 11:54:51 +02:00
Vincent de Lau 947607b3a8 Merge branch 'master' into add-param-and-return-type-hints 2023-04-04 11:54:14 +02:00
Vincent de Lau cb6ce4845c Merge pull request #94 from Stilch/add-param-hints
Adds parameter typehints, as per the erata

Since [psr/http-message version 1.1](https://packagist.org/packages/psr/http-message#1.1.0), the above interfaces have been updated to add argument type declarations.
https://www.php-fig.org/psr/psr-7/meta/
1.1
2023-04-04 11:50:52 +02:00
Aleksandr Golouz 3def5216f7 Added void as return types 2023-02-25 12:11:38 +05:00
Aleksandr Golouz 520dd0e3af Added string as return types for __toString 2023-02-25 12:11:24 +05:00
Aleksandr Golouz 6ae06cd6c8 Added a string typehint for the $requestTarget argument 2023-02-25 11:58:42 +05:00
Aleksandr Golouz f84c2d7abf Changed php version 2023-02-25 11:58:31 +05:00
Stilch 641e9f812d Changed the requirements for the PHP version and removed declare strict types 2022-02-23 17:40:53 +05:00
Stilch 54df5d4d33 Add return typehints 2021-05-09 12:51:39 +05:00
Stilch 5cd5ad7925 Adds parameter typehints 2021-05-09 12:36:19 +05:00
Gabi DJ efd67d1dc1 Added PSR-7 Interfaces brief explanations and Basic Usage Guide (#79)
* Added PSR-7 Interfaces Usage guide using Zend Diactoros

* Corrected errors in documentation

corrected PSR-7 methods explanations
corrected typos
removed concrete usage of diactoros
removed unnecessary text
removed zend-diactoros autoload
added assumption of $request and $response

* Update PSR7-Usage.md

* Corrected interfaces list
2019-08-29 08:16:46 -05:00
Matthew Weier O'Phinney f6561bf28d Added CHANGELOG for 1.0.1 1.0.1 2016-08-06 09:39:51 -05:00
MichaelC 14b9b813c5 Merge pull request #50 from localheinz/fix/return
Fix: Return static instead of self

* localheinz/fix/return:
  Fix: Return static instead of self
2016-08-05 12:47:47 +01:00
MichaelC d0aabc038f Fix docblock to specify that it should be an array of nested strings, not just array 2016-08-03 20:47:37 +01:00
Michael Cullum 4958c4ab62 Merge pull request #45 from mindplay-dk/patch-1
corrected malformed annotation
2016-08-03 19:27:44 +01:00
Michael Cullum 644d5ee468 Merge pull request #74 from easy-system/patch-3
Update RequestInterface.php
2016-08-03 19:25:46 +01:00
Michael Cullum c05524a463 Merge pull request #69 from mouhamed/patch-1
Fix typo in RequestInterface.php
2016-08-03 19:25:19 +01:00
Michael Cullum 13fb8c36f1 Merge pull request #70 from cxj/patch-1
Add homepage.
2016-08-03 19:25:02 +01:00
Michael Cullum d9723e4992 Merge pull request #61 from creocoder/patch-1
UploadedFileInterface phpDoc typo fixed
2016-08-03 19:17:07 +01:00
Damon 1534e52263 Update RequestInterface.php
Correcting inaccurate documentation
2016-03-07 19:40:31 +02:00
Chris Johnson c2290af463 Add homepage.
Including the homepage link makes package mirrors and directories such as those generated by Satis nicer to read and more useful (providing a direct link to the project page).
2016-01-06 10:31:37 -06:00
mouhamed 47cd67d7db Fix typo in RequestInterface.php 2015-12-14 16:39:29 +01:00
Alexander Kochetov 2a8e764911 UploadedFileInterface phpDoc typo fixed 2015-10-21 00:21:56 +03:00
Andreas Möller a6764a43fa Fix: Return static instead of self 2015-06-03 19:39:40 +02:00
Rasmus Schultz 9dbf3f0953 corrected malformed annotation 2015-05-14 18:05:06 +02:00
Paul M. Jones 85d63699f0 Merge pull request #42 from Maks3w/patch-2
Typo s/RFC3985/RFC3986/
1.0
2015-05-04 15:22:00 -05:00
Paul M. Jones ecd001e213 Merge pull request #40 from AndrewCarterUK/patch-1
Coding standards for UploadedFileInterface.php
2015-05-04 15:21:50 -05:00
Paul M. Jones b039f94786 Merge pull request #37 from GrahamForks/php-version
Using namespaces requires php 5.3.0 or higher
2015-05-04 15:21:37 -05:00
Paul M. Jones 809419e498 Merge pull request #43 from weierophinney/hotfix/sync-with-spec
Update to latest PSR-7 version
0.11.0
2015-05-04 15:20:08 -05:00
Matthew Weier O'Phinney f22d9b6dd2 Update to latest PSR-7 version
- Syncs all interface definitions with the latest revisions on
  php-fig/fig-standards.
2015-05-03 11:50:30 -05:00
Maks3w 679eea6d04 Typo s/RFC3985/RFC3986/ 2015-05-03 12:57:23 +02:00
Andrew Carter 1b325ca795 Added newline between namespace and opening PHP tag for UploadedFileInterface.php 2015-04-20 11:10:42 +01:00
Paul M. Jones 9723465b3e Merge pull request #39 from weierophinney/hotfix/psr7-uri-return
Sync with php-fig/fig-standards#518
0.10.1
2015-04-13 09:20:01 -05:00
Matthew Weier O'Phinney f3fcff8b2e Sync with php-fig/fig-standards#518 2015-04-13 09:16:29 -05:00
Paul M. Jones 116ee9239e Merge pull request #38 from weierophinney/feature/post-draft-2
Bring interfaces up-to-date with php-fig/fig-standards@b740164
0.10.0
2015-04-13 08:52:57 -05:00
Matthew Weier O'Phinney f3218d1cdf Brought interfaces up-to-date with php-fig/fig-standards@b740164 2015-04-13 08:41:38 -05:00
Graham Campbell b5d6015d5e Using namespaces requires php 5.3.0 or higher 2015-04-02 00:03:05 +01:00
Paul M. Jones 7c361ae6b0 Merge pull request #10 from siwinski/pr-remove-doc-exec
Remove documentation executable bits
0.9.2
2015-03-18 17:07:07 -05:00
Paul M. Jones 26f77877a0 Merge pull request #29 from weierophinney/hotfix/fig-standards-460
Sync with php-fig/fig-standards#460
2015-03-18 09:26:35 -05:00
Matthew Weier O'Phinney ac2460e2ea Sync with php-fig/fig-standards#460
Sync with php-fig/fig-standards#460 and clarify that an empty path
should be returned as "/".
2015-03-18 09:24:53 -05:00
Paul M. Jones db70d8c499 Merge pull request #28 from evert/patch-1
Document return values for non-existant headers
2015-03-04 16:48:04 -06:00
Paul M. Jones 83826b66ae Merge pull request #27 from weierophinney/hotfix/uri-encoding
Added language to withPath() regarding percent encoding
0.9.1
2015-03-04 16:45:46 -06:00
Paul M. Jones 8ad083e934 Merge pull request #26 from weierophinney/hotfix/host-header
Detail Host header sources
2015-03-04 16:45:38 -06:00
Paul M. Jones c51a56bd95 Merge pull request #25 from geekwright/psr7mpfd
[PSR-7] Include multipart/form-data in parsed body specified behaviors
2015-03-04 16:45:28 -06:00
Matthew Weier O'Phinney 6fa1059f87 s/percent encode/percent-encode/
- to match language of RFC 3986
2015-03-04 14:09:39 -06:00
Evert Pot ef85817070 Document return values for non-existant headers
See https://github.com/php-fig/fig-standards/pull/450
2015-03-03 18:56:08 -05:00
Matthew Weier O'Phinney 6a3d8f167e Encoding pertains to the query string as well 2015-03-03 16:40:21 -06:00
Matthew Weier O'Phinney 7d932c5e92 Host header access is non-optional, via all accessors
- Made Host header retrieval non-optional
- Added overrides for getHeaders() and getHeaderLines() to ensure they
  always return the Host header as well.
2015-03-03 16:21:43 -06:00
Matthew Weier O'Phinney 7a3382a6cb Added language to withPath() regarding percent encoding
Per RFC 3986, section 2, reserved characters must be percent encoded.
Additionally, the implementation must not double-encode.
2015-03-03 16:10:15 -06:00
Matthew Weier O'Phinney 43330d76e2 Detail Host header sources
Per the [related PR for fig-standards](php-fig/fig-standards#446), this PR
updates the `RequestInterface` to override the `getHeader()` method and indicate
that the Host header should be pulled from the composed URI if no value has been
previously set.
2015-03-01 15:06:47 -06:00