forgot the php7.1 syntax thing, removed.
parent
ed922e1d24
commit
963c5eb1d2
|
@ -171,7 +171,7 @@ function isVendored(PhpDocument $document, \stdClass $composerJson = null): bool
|
||||||
* @param array $matches
|
* @param array $matches
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
function getPackageName(string $uri, \stdClass $composerJson = null): ?string
|
function getPackageName(string $uri, \stdClass $composerJson = null)
|
||||||
{
|
{
|
||||||
$vendorDir = str_replace('/', '\/', getVendorDir($composerJson));
|
$vendorDir = str_replace('/', '\/', getVendorDir($composerJson));
|
||||||
preg_match("/\/$vendorDir\/([^\/]+\/[^\/]+)\//", $uri, $matches);
|
preg_match("/\/$vendorDir\/([^\/]+\/[^\/]+)\//", $uri, $matches);
|
||||||
|
|
Loading…
Reference in New Issue