mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
1ba6e66c46
After thinking about this a bit more, the code here was too conservative. We know that everything but an object is going to throw, so it's sufficient to restrict the type to MAY_BE_OBJECT. The change in the test is weird but not incorrect, because it operates on empty inferred types, in which case the code must be dead (which it is). We should probably add a more explicit removal of code working on empty types.