File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1111 * tag that contains type information (that is, an AST object).
1212 *
1313 * Requires a `type-lang/parser` dependency for {@see TypeStatement} support.
14- *
15- * @psalm-suppress UndefinedClass : Expects optional `type-lang/parser` dependency.
1614 */
1715interface OptionalTypeProviderInterface
1816{
1917 /**
2018 * Returns an AST object of the type or {@see null} in case the
2119 * type is not specified.
2220 *
21+ * @psalm-suppress UndefinedClass : Expects optional `type-lang/parser` dependency.
2322 * @psalm-immutable Each call to the method must return the same value.
2423 */
2524 public function getType (): ?TypeStatement ;
Original file line number Diff line number Diff line change 66
77use TypeLang \Parser \Node \Stmt \TypeStatement ;
88
9- /**
10- * @psalm-suppress UndefinedClass : Expects optional `type-lang/parser` dependency.
11- */
129interface TypeProviderInterface extends OptionalTypeProviderInterface
1310{
1411 /**
1512 * Returns an AST object of the type.
1613 *
14+ * @psalm-suppress UndefinedClass : Expects optional `type-lang/parser` dependency.
1715 * @psalm-immutable Each call to the method must return the same value.
1816 */
1917 public function getType (): TypeStatement ;
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ public function __construct(
2222 parent ::__construct ($ name , $ description );
2323 }
2424
25+ /**
26+ * @psalm-suppress UndefinedClass
27+ */
2528 public function getType (): TypeStatement
2629 {
2730 return $ this ->type ;
You can’t perform that action at this time.
0 commit comments