20 Commits

Author SHA1 Message Date
Matthew Weier O'Phinney 6009776263 revert: re-instate extension of Throwable in supplied exception interfaces
See https://github.com/php-fig/container/pull/32#issuecomment-943081411
2021-11-05 08:24:30 -05:00
Alessandro Lai 2ae37329ee Partially revert 19764b1 2021-03-24 14:40:57 +01:00
Alessandro Lai 19764b1677 Remove Throwable interface from exceptions (port of #31 to 2.x) 2021-03-08 10:32:22 +01:00
Matthew Weier O'Phinney 122c2676de Merge pull request #28 from weierophinney/feature/add-return-type-hints
Add return type hints
2021-03-05 09:59:51 -06:00
Matthew Weier O'Phinney 9fc7aab7a7 Merge pull request #20 from moufmouf/type_hinting
Adding type-hints and extending Throwable for exception interfaces
2021-03-05 09:48:30 -06:00
Matthew Weier O'Phinney de1921e99c feat: add return type hints
This patch adds a return type hint to `ContainerInterface::has()`, per
the already documented specification, in preparation for a v3 release.
No other methods were eligible, as they specified `mixed`.

See https://www.php-fig.org/blog/2019/10/upgrading-psr-interfaces/

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
2020-06-17 11:33:48 -05:00
Matthew Weier O'Phinney 6c2bc7fc16 feat: Adds parameter typehints to ContainerInterface
This patch bumps the minimum supported PHP version to 7.2 and adds
parameter typehints to ContainerInterface, as the first step towards
adding explicit typehints based on the specification.

See https://www.php-fig.org/blog/2019/10/upgrading-psr-interfaces/
2020-06-17 11:31:42 -05:00
David Négrier 42ca75b37d Adding type-hints and extending Throwable for exception interfaces 2018-06-26 17:39:16 +02:00
Robin Chalas 83c9b15b03 Remove license phpdoc annotation 2017-06-28 15:04:41 +02:00
Máté Kocsis 404e82e65e Copy PHPDoc comments from the specification
There were some differences of comments between the specification and this interface which I tried to eliminate.
2017-02-14 15:00:23 +01:00
Grégoire Paris e08b685102 Remove trailing whitespace 2017-01-13 09:52:09 +01:00
Grégoire Paris 9ba1b6b586 Suffix interfaces with "Interface"
This is what is specified.
Fixes #8
2017-01-13 09:51:56 +01:00
Matthieu Napoli ea053f9d8e Move exceptions to the main namespace
This is so that we are consistent with other PSRs.

https://groups.google.com/forum/#!topic/php-fig/L8rDUwRFsOU
2016-11-02 22:56:39 +01:00
Matthieu Napoli 3b4cadb5e0 Move from container-interop to psr/container 2016-08-15 20:50:05 +02:00
Matthieu Napoli 8a95cad08a Fix #37 Improve Container::has() description 2015-10-18 14:30:28 +02:00
Matthieu Napoli 549b8cf62a #3 Added ContainerException, NotFoundException extends it 2014-01-28 19:51:02 +01:00
Matthieu Napoli 1b2142e646 Renamed ReadableContainerInterface to ContainerInterface 2014-01-23 13:51:29 +01:00
Matthieu Napoli 2f50916f58 #7 Renamed namespace from Interop\DI to Interop\Container 2013-12-22 10:19:55 +01:00
David Négrier 129f362239 Changing NotFoundException from a class to an interface.
Closing #2
2013-12-04 18:51:01 +01:00
Matthieu Napoli ac51537eec Added ReadableContainerInterface 2013-12-03 16:14:25 +01:00