davidrjonas / composer-lock-diff

See what has changed after a composer update
MIT License
274 stars 18 forks source link

2 PHP notices on latest stable release #24

Closed acbramley closed 4 years ago

acbramley commented 4 years ago
Notice: Undefined property: stdClass::$source in /data/vendor/davidrjonas/composer-lock-diff/composer-lock-diff on line 212

Notice: Trying to get property 'url' of non-object in /data/vendor/davidrjonas/composer-lock-diff/composer-lock-diff on line 212

I haven't dug into which packages are throwing these errors yet

davidrjonas commented 4 years ago

Sorry I haven’t had a chance to look at this yet. Hoping to get to it this weekend.

davidrjonas commented 4 years ago

It is something related to the packages you're using. Is it a public package? If so let me know, maybe there is a good way to handle it.

For now, only the compare url is at issue so skipping it if the source isn't set is not a big deal. I made a slight change that is now in master. Does that fix the problem for you? If so I'll cut a release.