@@ -24,7 +24,7 @@ final class InterfaceSynopsis extends PageSection {
2424 <<__Override >>
2525 public function getMarkdown (): ?string {
2626 $c = $this -> definition ;
27- if (! $c instanceof ScannedClassish ) {
27+ if (! $c is ScannedClassish ) {
2828 return null ;
2929 }
3030
@@ -104,13 +104,13 @@ final class InterfaceSynopsis extends PageSection {
104104 ScannedMethod $m ,
105105 ): ?string {
106106 $pp = $this -> context -> getPathProvider();
107- if ($c instanceof ScannedClass ) {
107+ if ($c is ScannedClass ) {
108108 return $pp -> getPathForClassMethod($c -> getName(), $m -> getName());
109109 }
110- if ($c instanceof ScannedInterface ) {
110+ if ($c is ScannedInterface ) {
111111 return $pp -> getPathForInterfaceMethod($c -> getName(), $m -> getName());
112112 }
113- if ($c instanceof ScannedTrait ) {
113+ if ($c is ScannedTrait ) {
114114 return $pp -> getPathForTraitMethod($c -> getName(), $m -> getName());
115115 }
116116 invariant_violation (" Don't know how to handle type %s" , \get_class ($c ));
@@ -131,11 +131,11 @@ final class InterfaceSynopsis extends PageSection {
131131 $ret .= ' final ' ;
132132 }
133133
134- if ($c instanceof ScannedClass ) {
134+ if ($c is ScannedClass ) {
135135 $ret .= ' class ' ;
136- } else if ($c instanceof ScannedInterface ) {
136+ } else if ($c is ScannedInterface ) {
137137 $ret .= ' interface ' ;
138- } else if ($c instanceof ScannedTrait ) {
138+ } else if ($c is ScannedTrait ) {
139139 $ret .= ' trait ' ;
140140 } else {
141141 invariant_violation (" Don't know what a %s is." , \get_class ($c ));
0 commit comments