Skip to content

Commit

Permalink
Add common issues section
Browse files Browse the repository at this point in the history
Closes #27
  • Loading branch information
icanhazstring committed Jan 13, 2019
1 parent c508a19 commit a55e629
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,25 @@ To enhance capabilities of contracts, it's possible to use [assertion library](h

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

Common issues
-----------

##### Fatal error: Uncaught Error: Class 'Go\ParserReflection\Instrument\PathResolver'
```php
Fatal error: Uncaught Error: Class 'Go\ParserReflection\Instrument\PathResolver'
not found in .../vendor/goaop/parser-reflection/src/ReflectionEngine.php on line XXX
```

This happens if your `appDir` configuration points at the same level as your `vendor` directory.
To solve this issue try adding your `vendor` folder into the `excludePaths` configuration.

```php
ContractApplication::getInstance()->init(array(
'debug' => true,
'appDir' => __DIR__,,
'exludePaths' => [
__DIR__ . '/vendor'
],
'cacheDir' => __DIR__.'/cache/',
));
```

0 comments on commit a55e629

Please sign in to comment.