We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf27d1 commit 923f038Copy full SHA for 923f038
packages/view/src/ViewComponentDiscovery.php
@@ -57,7 +57,7 @@ public function discoverPath(DiscoveryLocation $location, string $path): void
57
['/^(.|\n)*?<x-component name="[\w\-]+">/', '/<\/x-component>$/'],
58
'',
59
$contents->toString(),
60
- ));
+ ) ?? '');
61
62
if ($fileName->startsWith('x-') && $name === null) {
63
$this->discoveryItems->add($location, [
0 commit comments