[php-src] Issue #9962: It is recommended to add the function of assigning object types to variables
| From: | yinbug | Date: | Wed, 16 Nov 2022 04:10:43 +0000 |
| Subject: | [php-src] Issue #9962: It is recommended to add the function of assigning object types to variables | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242830@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9962
Author: yinbug
### Description
It is recommended to add the function of assigning object types to variables
Like the type conversion of C #
example:
```php
class A{}
$var = serialize(new A());
$a = unserialize($var) as
\A::class;
```
C#
