Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

#85 fail-safe wrapper around BC compliance checks that access risky/throw-happy reflection API #92

Merged

Conversation

Ocramius
Copy link
Member

Fixes #85

…s on risky reflection operations

This effectively prevents an analysis from completely crashing, which is a
relatively decent solution. The exit code will stay non-zero if a check is
skipped, but the analysis will no longer clog up when something like an
unresolved symbol, extension, constant or infinitely recursive resolution
happens.
@Ocramius Ocramius added this to the 1.1.0 milestone Aug 20, 2018
@@ -52,6 +54,12 @@ public static function removed(string $description, bool $isBcBreak) : self
return new self(self::REMOVED, $description, $isBcBreak);
}

public static function skippedDueToFailure(Throwable $failure) : self
{
// @TODO Note: we may consider importing the full exception for better printing later on
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to #93

@Ocramius Ocramius merged commit 491e924 into master Aug 21, 2018
@Ocramius Ocramius deleted the feature/#85-fail-safe-wrapper-around-comparison-failures branch August 21, 2018 07:46
@Ocramius Ocramius assigned Ocramius and unassigned asgrim Aug 21, 2018
@Ocramius
Copy link
Member Author

Quoting @asgrim:

@Ocramius I see good shit happening atm on BCC, but I'm behind on like everything atm
I'll catch up but if it's urgent please just merge shit
eventuall

So lots of shit, which means 🚢, I suppose 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants