Skip to content

Commit a55e629

Browse files
committed
Add common issues section
Closes #27
1 parent c508a19 commit a55e629

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,25 @@ To enhance capabilities of contracts, it's possible to use [assertion library](h
268268

269269
[More assertions](https://github.com/beberlei/assert#list-of-assertions)
270270

271+
Common issues
272+
-----------
273+
274+
##### Fatal error: Uncaught Error: Class 'Go\ParserReflection\Instrument\PathResolver'
275+
```php
276+
Fatal error: Uncaught Error: Class 'Go\ParserReflection\Instrument\PathResolver'
277+
not found in .../vendor/goaop/parser-reflection/src/ReflectionEngine.php on line XXX
278+
```
279+
280+
This happens if your `appDir` configuration points at the same level as your `vendor` directory.
281+
To solve this issue try adding your `vendor` folder into the `excludePaths` configuration.
282+
283+
```php
284+
ContractApplication::getInstance()->init(array(
285+
'debug' => true,
286+
'appDir' => __DIR__,,
287+
'exludePaths' => [
288+
__DIR__ . '/vendor'
289+
],
290+
'cacheDir' => __DIR__.'/cache/',
291+
));
292+
```

0 commit comments

Comments
 (0)