Clarify that install path is absolute but not realpath'd, fixes #10945
parent
3595666e6e
commit
31c7474cde
|
@ -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.
|
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
|
```php
|
||||||
// returns an absolute path to the package installation location if vendor/package is installed,
|
// 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
|
// or null if it is provided/replaced, or the package is a metapackage
|
||||||
|
|
Loading…
Reference in New Issue