GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use nameof in ::class comparisons (flib 3/3) · meta/fbthrift@e5bba51

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • thrift/lib/hack/src/transport/__tests__
    • TFramedTransportTestCase.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎thrift/lib/hack/src/transport/__tests__/TFramedTransportTestCase.php‎

Copy file name to clipboardExpand all lines: thrift/lib/hack/src/transport/__tests__/TFramedTransportTestCase.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ classname<TTransport> $tname,
6262

6363
/* HH_FIXME[4489] Revealed through strict exhaustivity checking for switches */
6464
switch ($tname) {
65-
case TBufferedTransport::class:
65+
case nameof TBufferedTransport:
6666
$transport = new TBufferedTransport<TMemoryBuffer>($buffer2);
6767
break;
68-
case TFramedTransport::class:
68+
case nameof TFramedTransport:
6969
$transport = new TFramedTransport($buffer2);
7070
break;
7171
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.