Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Let ExpectObj be non-final (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Jun 6, 2022
1 parent 2f4a563 commit 5ad14d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ExpectObj.hack
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ use namespace HH\Lib\{C, Str, Vec};
use type HH\Lib\Ref;
use type Facebook\HackTest\ExpectationFailedException;

final class ExpectObj<T> extends Assert {
/* HHAST_IGNORE_ERROR[FinalOrAbstractClass] Intentional non-final for backward compatibility */
class ExpectObj<T> extends Assert {
public function __construct(private T $var) {}

/**************************************
Expand Down

0 comments on commit 5ad14d4

Please sign in to comment.