Skip to content

Commit b29d7c9

Browse files
author
cradu
committed
pint fixes
1 parent f9255d2 commit b29d7c9

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
laravel: [ '9.*' ]
2727
include:
2828
- laravel: 9.*
29-
testbench: 8.*
29+
testbench: 7.*
3030

3131
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
3232

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"laravel/pint": "^1.2",
3636
"mockery/mockery": "^1.5.1",
3737
"nunomaduro/phpinsights": "^2.11",
38-
"orchestra/testbench": "^v8.0.0|^v9.0.0",
38+
"orchestra/testbench": "^v7.0.0|^v8.0.0|^v9.0.0",
3939
"pestphp/pest": "^2.0",
4040
"pestphp/pest-plugin-laravel": "^2.3",
4141
"rector/rector": "^1.0",

src/Exceptions/HookFailException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66

77
use RuntimeException;
88

9-
class HookFailException extends RuntimeException {}
9+
class HookFailException extends RuntimeException
10+
{
11+
}

src/GitHooksServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public function register(): void
3939
// Automatically apply the package configuration
4040
$this->mergeConfigFrom(__DIR__.'/../config/git-hooks.php', 'laravel-git-hooks');
4141

42-
$this->app->singleton('laravel-git-hooks', fn () => new GitHooks);
42+
$this->app->singleton('laravel-git-hooks', fn () => new GitHooks());
4343
}
4444
}

src/Traits/WithPipelineFailCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function markPipelineFailed(): void
1212
{
1313
$tmpFile = $this->getPipelineFailedTempFile();
1414
if (touch($tmpFile) === false) {
15-
throw new HookFailException;
15+
throw new HookFailException();
1616
}
1717
}
1818

0 commit comments

Comments
 (0)