Skip to content

Commit

Permalink
Merge branch '10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 31, 2023
2 parents 8d9c813 + fb20bac commit e9e6afb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
'phpdoc_summary' => true,
'phpdoc_tag_casing' => true,
'phpdoc_tag_type' => true,
'phpdoc_to_comment' => true,
'phpdoc_to_comment' => false,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types' => ['groups' => ['simple', 'meta']],
Expand Down
13 changes: 9 additions & 4 deletions src/Runner/Extension/PharLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use PHPUnit\Event;
use PHPUnit\Runner\Version;
use SebastianBergmann\FileIterator\Facade as FileIteratorFacade;
use Throwable;

/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
Expand Down Expand Up @@ -75,10 +76,14 @@ public function loadPharExtensionsInDirectory(string $directory): array
continue;
}

/**
* @psalm-suppress UnresolvableInclude
*/
require $file;
try {
/** @psalm-suppress UnresolvableInclude */
@require $file;
} catch (Throwable $t) {
$notLoadedExtensions[] = $file . ': ' . $t->getMessage();

continue;
}

$loadedExtensions[] = $manifest->getName()->asString() . ' ' . $manifest->getVersion()->getVersionString();

Expand Down

0 comments on commit e9e6afb

Please sign in to comment.