Created
May 14, 2020 11:15
-
-
Save bmichotte/325b8f42233f286b5d19d2547376f41f to your computer and use it in GitHub Desktop.
attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
function bar(int $value): void | |
{ | |
if ($value < 0) { | |
throw new Exception('....'); | |
} | |
// do stuff | |
} | |
} | |
class Foo | |
{ | |
function bar(<<\Validation\Numbers\Unsigned>> int $value): void {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment