-
-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
Milestone
Description
The test suite includes scenarios that handle the : void return type of methods:
ProxyManager/tests/ProxyManagerTestAsset/VoidCounter.php
Lines 7 to 17 in 95f9ccf
class VoidCounter { /** * @var int */ public $counter = 0; public function increment(int $amount) : void { $this->counter += $amount; } - https://github.com/Ocramius/ProxyManager/blob/95f9ccf6711b91736ce6da261c24252b84a290c7/tests/ProxyManagerTestAsset/VoidMethodTypeHintedClass.php
- https://github.com/Ocramius/ProxyManager/blob/95f9ccf6711b91736ce6da261c24252b84a290c7/tests/ProxyManagerTestAsset/VoidMethodTypeHintedInterface.php
We need:
- similar classes, but using the
nevertype ( https://wiki.php.net/rfc/noreturn_type ) - make sure we find usages of above classes, and introduce tests around the
nevertype wherever they are used (using the newly introduced assets)