1
0
Fork 0

forgot the php7.1 syntax thing, removed.

pull/281/head
Trevor Bortins 2017-02-07 13:59:30 -08:00
parent ed922e1d24
commit 963c5eb1d2
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ function isVendored(PhpDocument $document, \stdClass $composerJson = null): bool
* @param array $matches
* @return string|null
*/
function getPackageName(string $uri, \stdClass $composerJson = null): ?string
function getPackageName(string $uri, \stdClass $composerJson = null)
{
$vendorDir = str_replace('/', '\/', getVendorDir($composerJson));
preg_match("/\/$vendorDir\/([^\/]+\/[^\/]+)\//", $uri, $matches);