Skip to content

Commit

Permalink
PhpStan boostrap for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
b-viguier committed Aug 19, 2024
1 parent 2b1ea9e commit 9246f82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ parameters:
- tests
- examples
bootstrapFiles:
- /usr/local/bin//phpunit
- tests/phpstan-bootstrap.php
8 changes: 8 additions & 0 deletions tests/phpstan-bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

if (\PHP_OS_FAMILY === 'Windows') {
`where phpunit`;
require 'C:\ProgramData\ComposerSetup\bin\phpunit';
} else {
require '/usr/local/bin/phpunit';
}

0 comments on commit 9246f82

Please sign in to comment.