Skip to content

Commit

Permalink
Made WeakReference mutable
Browse files Browse the repository at this point in the history
Fixes #6544
  • Loading branch information
weirdan committed Feb 14, 2023
1 parent 121eef9 commit 3693300
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stubs/CoreGenericClasses.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ interface Serializable {

/**
* @template-covariant T as object
* @psalm-immutable
*/
final class WeakReference
{
Expand All @@ -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 {}
Expand Down

0 comments on commit 3693300

Please sign in to comment.