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:
commit
47eb024007
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user