You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PHP 8.1, you can use an "intersection type" (also known as "pure") that enforce that a given value belong to every types. For example this param needs to implement both __Stringable__ and __Countable__ interfaces:
269
+
Since PHP 8.1, you can use an "intersection type" (also known as "pure") that enforce that a given value belong to every types. For example this param needs to implement both ___Stringable___ and ___Countable___ interfaces:
270
270
271
271
```php
272
272
function myFunction(Stringable&Countable $param): Stringable&Countable
0 commit comments