phpspec / prophecy

Highly opinionated mocking framework for PHP 5.3+
MIT License
8.53k stars 241 forks source link

Support `true` return type #557

Closed stof closed 1 year ago

stof commented 2 years ago

Similar to https://github.com/phpspec/prophecy/issues/505, but for the true type added in PHP 8.2

kschatzle commented 1 year ago
FYI bool Return Type php80 php81 php82
true Standalone Type N N Y
true Intersection Type N N N
true Union Type N N Y
true Nullable Type N N Y
false Standalone Type N N Y
false Intersection Type N N N
false Union Type Y Y Y
false Nullable Type N N Y
kschatzle commented 1 year ago

PR found here -> #566