Skip to content

Commit 5968d9f

Browse files
authored
Added missing namespaces in tests
1 parent 480626e commit 5968d9f

10 files changed

+21
-9
lines changed

tests/PHPStan/Analyser/data/bug-1014.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php declare(strict_types=1);
22

3+
namespace Bug1014;
4+
35
use function PHPStan\Testing\assertType;
46

57
function bug1014(): void {

tests/PHPStan/Analyser/data/bug-3351.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php declare(strict_types = 1);
22

3+
namespace Bug3351;
4+
35
use function PHPStan\Testing\assertType;
46

57
class HelloWorld

tests/PHPStan/Analyser/data/isset-coalesce-empty-type-post-81.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace IssetCoalesceEmptyTypePost81;
4+
35
use function PHPStan\Testing\assertType;
46

57
function baz(\ReflectionClass $ref): void {

tests/PHPStan/Analyser/data/isset-coalesce-empty-type-pre-81.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace IssetCoalesceEmptyTypePre81;
4+
35
use function PHPStan\Testing\assertType;
46

57
function baz(\ReflectionClass $ref): void {

tests/PHPStan/Analyser/data/mb-strlen-php72.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

3-
declare(strict_types=1);
3+
namespace MbStrlenPhp72;
44

55
use function PHPStan\Testing\assertType;
66

tests/PHPStan/Analyser/data/mb-strlen-php73.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

3-
declare(strict_types=1);
3+
namespace MbStrlenPhp73;
44

55
use function PHPStan\Testing\assertType;
66

tests/PHPStan/Analyser/data/mb-strlen-php8.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

3-
declare(strict_types=1);
3+
namespace MbStrlenPhp8;
44

55
use function PHPStan\Testing\assertType;
66

tests/PHPStan/Analyser/data/mb-strlen-php82.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

3-
declare(strict_types=1);
3+
namespace MbStrlenPhp82;
44

55
use function PHPStan\Testing\assertType;
66

7-
class MbStrlenPhp8
7+
class MbStrlenPhp82
88
{
99

1010
/**

tests/PHPStan/Analyser/data/preg_split.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace PregSplit;
4+
35
use function PHPStan\Testing\assertType;
46

57
class HelloWorld

tests/PHPStan/Analyser/data/splfixedarray-iterator-types.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace SplFixedArrayIteratorTypes;
4+
35
class HelloWorld
46
{
57
/**

0 commit comments

Comments
 (0)