Skip to content

Commit 1c682fd

Browse files
committed
Add version()
1 parent d0fb506 commit 1c682fd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Faultline.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Faultline;
4+
5+
class Faultline {
6+
7+
public static function version(){
8+
return '0.1.0';
9+
}
10+
}

src/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function builtNotice($exc)
4141
$context = [
4242
'notifier' => [
4343
'name' => 'faultilne-php',
44-
'version' => '0.0.1',
44+
'version' => Faultline::version(),
4545
'url' => 'https://github.com/k1low/faultline-php',
4646
],
4747
'os' => php_uname(),

0 commit comments

Comments
 (0)