| 1 | <?php |
||
| 25 | class TableCaption extends AbstractStringContainerBlock implements InlineContainerInterface |
||
| 26 | { |
||
| 27 | public $id; |
||
| 28 | |||
| 29 | public function __construct(string $caption, string $id = null) |
||
| 35 | |||
| 36 | public function canContain(AbstractBlock $block): bool |
||
| 40 | |||
| 41 | public function acceptsLines(): bool |
||
| 45 | |||
| 46 | public function isCode(): bool |
||
| 50 | |||
| 51 | public function matchesNextLine(Cursor $cursor): bool |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return AbstractInline[] |
||
| 58 | */ |
||
| 59 | public function children(): array |
||
| 63 | |||
| 64 | public function handleRemainingContents(ContextInterface $context, Cursor $cursor): void |
||
| 67 | } |
||
| 68 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.jsonfile (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.jsonto be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
requireorrequire-devsection?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceofchecks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.