<?php

$re = '/\d+\.\d+.\d+(?:-\w+(?:\.\w+)?)?/m';

$result = preg_replace($re, $argv[1], file_get_contents('../src/Sentry/Laravel/Version.php'));
file_put_contents('../src/Sentry/Laravel/Version.php', $result);
<?php

$re = '/[\d|x]+\.[\d|x]+.[\d|x]+(?:-\w+(?:\.\w+)?)?/m';
$path = __DIR__ . '/../src/Sentry/Laravel/Version.php';

file_put_contents($path, preg_replace($re, $argv[1], file_get_contents($path)));

Fix the version bump script
Fix the version bump script
