Skip to content

Commit

Permalink
fix(php8.1): deprecated trim with null value (#6374)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainmetayer authored Oct 16, 2022
1 parent 3647697 commit b4c1c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),

// capture release as git sha
'release' => trim(is_file(__DIR__.'/.release') ? file_get_contents(__DIR__.'/.release') : (is_dir(__DIR__.'/../.git') ? trim(exec('git --git-dir '.base_path('.git').' log --pretty="%h" -n1 HEAD')) : null)),
'release' => is_file(__DIR__.'/.release') ? trim(file_get_contents(__DIR__.'/.release')) : (is_dir(__DIR__.'/../.git') ? trim(exec('git --git-dir '.base_path('.git').' log --pretty="%h" -n1 HEAD')) : null),

// When left empty or `null` the Laravel environment will be used
'environment' => env('SENTRY_ENVIRONMENT'),
Expand Down

0 comments on commit b4c1c03

Please sign in to comment.