Skip to content

Commit

Permalink
Added missing namespaces in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 31, 2022
1 parent 9128321 commit 70d9227
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 9 deletions.
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/data/bug-1014.php
@@ -1,5 +1,7 @@
<?php declare(strict_types=1);

namespace bug1014;

use function PHPStan\Testing\assertType;

function bug1014(): void {
Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/data/bug-3351.php
@@ -1,5 +1,7 @@
<?php declare(strict_types = 1);

namespace Bug3351;

use function PHPStan\Testing\assertType;

class HelloWorld
Expand Down
@@ -1,5 +1,7 @@
<?php

namespace IssetCoalesceEmptyTypePost81;

use function PHPStan\Testing\assertType;

function baz(\ReflectionClass $ref): void {
Expand Down
@@ -1,5 +1,7 @@
<?php

namespace IssetCoalesceEmptyTypePre81;

use function PHPStan\Testing\assertType;

function baz(\ReflectionClass $ref): void {
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/data/mb-strlen-php72.php
@@ -1,6 +1,6 @@
<?php
<?php declare(strict_types=1);

declare(strict_types=1);
namespace MbStrlenPhp72;

use function PHPStan\Testing\assertType;

Expand Down
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/data/mb-strlen-php73.php
@@ -1,6 +1,6 @@
<?php
<?php declare(strict_types=1);

declare(strict_types=1);
namespace MbStrlenPhp73;

use function PHPStan\Testing\assertType;

Expand Down
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/data/mb-strlen-php8.php
@@ -1,6 +1,6 @@
<?php
<?php declare(strict_types=1);

declare(strict_types=1);
namespace MbStrlenPhp8;

use function PHPStan\Testing\assertType;

Expand Down
6 changes: 3 additions & 3 deletions tests/PHPStan/Analyser/data/mb-strlen-php82.php
@@ -1,10 +1,10 @@
<?php
<?php declare(strict_types=1);

declare(strict_types=1);
namespace MbStrlenPhp82;

use function PHPStan\Testing\assertType;

class MbStrlenPhp8
class MbStrlenPhp82
{

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/data/preg_split.php
@@ -1,5 +1,7 @@
<?php

namespace PregSplit;

use function PHPStan\Testing\assertType;

class HelloWorld
Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/data/splfixedarray-iterator-types.php
@@ -1,5 +1,7 @@
<?php

namespace SplFixedArrayIteratorTypes;

class HelloWorld
{
/**
Expand Down

0 comments on commit 70d9227

Please sign in to comment.