1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-23 06:11:25 +01:00

Merge pull request #9297 from weirdan/fix-6544

Made `WeakReference` mutable
This commit is contained in:
Bruce Weirdan 2023-02-14 19:47:54 -04:00 committed by GitHub
commit 47eb024007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,7 +439,6 @@ interface Serializable {
/**
* @template-covariant T as object
* @psalm-immutable
*/
final class WeakReference
{
@ -448,10 +447,10 @@ final class WeakReference
/**
* @template TIn as object
* @param TIn $referent
* @param TIn $object
* @return WeakReference<TIn>
*/
public static function create(object $referent): WeakReference {}
public static function create(object $object): WeakReference {}
/** @return ?T */
public function get(): ?object {}