Skip to content

Commit

Permalink
Merge pull request #22 from open-source-contributions/remove_unused_n…
Browse files Browse the repository at this point in the history
…amespaces

Removing unused namespaces
  • Loading branch information
stevegrunwell authored Dec 30, 2020
2 parents 6e847f2 + 572d7be commit 510f0ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ parameters:

# Strings are a valid callable type.
-
message: '#Parameter \#1 \$function of function call_user_func_array expects callable\(\): mixed, string given\.#'
message: '#Parameter \#1 \S+ of function call_user_func_array expects callable\(\): mixed, string given\.#'
path: src/Support/Runkit.php

# Dynamically-defined functions.
Expand Down
1 change: 0 additions & 1 deletion tests/ConstantsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use AssertWell\PHPUnitGlobalState\Exceptions\RedefineException;
use AssertWell\PHPUnitGlobalState\Support\Runkit;
use PHPUnit\Framework\SkippedTestError;

/**
* @covers AssertWell\PHPUnitGlobalState\Constants
Expand Down
5 changes: 3 additions & 2 deletions tests/FixtureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Tests;

use AssertWell\PHPUnitGlobalState\Exceptions\RedefineException;
use PHPUnit\Framework\SkippedTestError;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

/**
Expand All @@ -15,6 +13,9 @@ class FixtureTest extends TestCase
{
use SetUpTearDownTrait;

/**
* @var array<string>
*/
protected $backupGlobalsBlacklist = [
'FIXTURE_BEFORE_GLOBAL',
'FIXTURE_SETUP_GLOBAL',
Expand Down
3 changes: 3 additions & 0 deletions tests/GlobalVariablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*/
class GlobalVariablesTest extends TestCase
{
/**
* @var array<string>
*/
protected $backupGlobalsBlacklist = [
'setGlobalVariable',
];
Expand Down

0 comments on commit 510f0ab

Please sign in to comment.