From 963c5eb1d2847e731e435771920a0565c0ec5207 Mon Sep 17 00:00:00 2001 From: Trevor Bortins Date: Tue, 7 Feb 2017 13:59:30 -0800 Subject: [PATCH] forgot the php7.1 syntax thing, removed. --- src/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.php b/src/utils.php index 332602b..c0c5bf7 100644 --- a/src/utils.php +++ b/src/utils.php @@ -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);