File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " magento/composer-dependency-version-audit-plugin" ,
3
3
"type" : " composer-plugin" ,
4
4
"description" : " Validating packages through a composer plugin" ,
5
- "version" : " 0.1.3 " ,
5
+ "version" : " 0.1.4 " ,
6
6
"license" : [
7
7
" OSL-3.0"
8
8
],
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ public function packageUpdate(PackageEvent $event): void
217
217
if (!$ isPackageVBE ) {
218
218
foreach ($ this ->composer ->getRepositoryManager ()->getRepositories () as $ repository ) {
219
219
$ found = $ this ->versionSelector ->findBestCandidate ($ this ->composer , $ packageName , $ repository );
220
+ $ repoUrl = "" ;
220
221
/** @var RepositoryInterface $repository */
221
222
if ($ repository instanceof ComposerRepository) {
222
223
$ repoUrl = $ repository ->getRepoConfig ()['url ' ];
@@ -225,7 +226,7 @@ public function packageUpdate(PackageEvent $event): void
225
226
$ repoUrl = $ repository ->getRepository ()->getRepoConfig ()['url ' ];
226
227
}
227
228
if ($ found ) {
228
- if (strpos ($ repoUrl , self ::URL_REPO_PACKAGIST ) !== false ) {
229
+ if ($ repoUrl && strpos ($ repoUrl , self ::URL_REPO_PACKAGIST ) !== false ) {
229
230
$ publicRepoVersion = $ found ->getFullPrettyVersion ();
230
231
} else {
231
232
$ currentPrivateRepoVersion = $ found ->getFullPrettyVersion ();
You can’t perform that action at this time.
0 commit comments