Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require-dev": {
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"pestphp/pest": "^2.0 || ^3.0",
"pestphp/pest": "^2.0 || ^3.0 || ^4.0 || ^5.3.4",
"phpstan/phpstan": "^1.11 || ^2.0"
},
"config": {
Expand Down
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ parameters:
- tests/fixtures/*
ignoreErrors:
- '#Dummy not found#'
# Pest <= 3 leaves $this untyped inside test closures, so PHPStan flags
# $this->artisan() there; Pest 4+ types it. Ignore it without reporting
# the ignore as unmatched, so analysis passes on every Pest we allow.
-
message: '#(artisan\(\)|\$this)#'
path: tests/Feature/Commands/ErrorsCommandTest.php
reportUnmatched: false
4 changes: 2 additions & 2 deletions tests/Feature/Commands/ErrorsCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Archetype\Facades\PHPFile;

it('outputs no errors on a default laravel installation', function() {
$this->artisan('archetype:errors') // @phpstan-ignore-line
$this->artisan('archetype:errors')
->assertSuccessful()
->expectsOutput("No errors found!");
});
Expand All @@ -12,7 +12,7 @@
$path = PHPFile::load('app/Models/User.php')->input->absolutePath();
file_put_contents($path, '<?php ¯\_(ツ)_/¯;');

$this->artisan('archetype:errors') // @phpstan-ignore-line
$this->artisan('archetype:errors')
->assertSuccessful()
->expectsTable([
'path',
Expand Down
Loading