Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing namespaces in tests #2156

Merged
merged 2 commits into from Jan 4, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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