Skip to content

Commit

Permalink
Merge pull request #9297 from weirdan/fix-6544
Browse files Browse the repository at this point in the history
Made `WeakReference` mutable
  • Loading branch information
weirdan committed Feb 14, 2023
2 parents 121eef9 + 3693300 commit 47eb024
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 47eb024

Please sign in to comment.