We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f8799 commit 7299e18Copy full SHA for 7299e18
1 file changed
src/Filesystem.php
@@ -105,19 +105,11 @@ public function contains(Path $path): bool
105
#[\NoDiscard]
106
public function require(Path $path): Maybe
107
{
108
- $path = $path->toString();
109
-
110
- if (!\file_exists($path) || \is_dir($path)) {
111
- /** @var Maybe<mixed> */
112
- return Maybe::nothing();
113
- }
114
115
- /**
116
- * @psalm-suppress UnresolvableInclude
117
- * @psalm-suppress MixedArgument
118
- * @var Maybe<mixed>
119
- */
120
- return Maybe::just(require $path);
+ return $this
+ ->config
+ ->io()
+ ->files()
+ ->require($path);
121
}
122
123
0 commit comments