Skip to content

Commit

Permalink
Clarify that install path is absolute but not realpath'd, fixes #10945
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jul 17, 2022
1 parent 3595666 commit 31c7474
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 31c7474

Please sign in to comment.