Derive author from git var GIT_AUTHOR_IDENT
#58
Merged
Annotations
1 warning
|
src/bitExpert/CaptainHook/ValidateAuthor/GitIdentity.php#L39
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
*/
public static function fromIdentString(string $ident) : self
{
- if (!(bool) preg_match('/^([^<]+) <([^>]+)>/', $ident, $matches)) {
+ if (!preg_match('/^([^<]+) <([^>]+)>/', $ident, $matches)) {
throw new \RuntimeException('Could not parse git ident string');
}
return new self($matches[1], $matches[2]);
}
}
|
The logs for this run have expired and are no longer available.
Loading