Skip to content

Commit

Permalink
Clarify that install path is absolute but not realpath'd, fixes compo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored and emahorvat52 committed Jan 18, 2023
1 parent d15f470 commit d2e1fd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/07-runtime.md
Expand Up @@ -101,6 +101,10 @@ source/docblocks of [the class itself](https://github.com/composer/composer/blob

The `getInstallPath` method to retrieve a package's absolute install path.

> **Note:** The path, while absolute, may contain `../` or symlinks. It is
> not guaranteed to be equivalent to a `realpath()` so you should run a
> realpath on it if that matters to you.
```php
// returns an absolute path to the package installation location if vendor/package is installed,
// or null if it is provided/replaced, or the package is a metapackage
Expand Down

0 comments on commit d2e1fd2

Please sign in to comment.