1
0
Fork 0

Clarify that install path is absolute but not realpath'd, fixes #10945

pull/10953/head
Jordi Boggiano 2022-07-17 21:59:18 +02:00 committed by GitHub
parent 3595666e6e
commit 31c7474cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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