Skip to content

Commit 231a227

Browse files
committed
// lint after declare never worked
1 parent eab339c commit 231a227

14 files changed

+42
-14
lines changed

tests/PHPStan/Analyser/nsrt/array-chunk-php81.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.1
1+
<?php // lint >= 8.1
2+
3+
declare(strict_types = 1);
24

35
namespace ArrayChunkPhp81;
46

tests/PHPStan/Analyser/nsrt/bug-10071.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1); // lint >= 8.0
1+
<?php // lint >= 8.0
2+
3+
declare(strict_types=1);
24

35
namespace Bug10071;
46

tests/PHPStan/Analyser/nsrt/bug-6251.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.0
1+
<?php // lint >= 8.0
2+
3+
declare(strict_types = 1);
24

35
namespace Bug6251;
46

tests/PHPStan/Analyser/nsrt/bug-6790.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.0
1+
<?php // lint >= 8.0
2+
3+
declare(strict_types = 1);
24

35
namespace Bug6790;
46

tests/PHPStan/Analyser/nsrt/bug-6870.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.0
1+
<?php // lint >= 8.0
2+
3+
declare(strict_types = 1);
24

35
namespace Bug6870;
46

tests/PHPStan/Analyser/nsrt/bug-7106.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.1
1+
<?php // lint >= 8.1
2+
3+
declare(strict_types = 1);
24

35
namespace Bug7106;
46

tests/PHPStan/Analyser/nsrt/bug-7162.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1); // lint >= 8.1
1+
<?php // lint >= 8.1
2+
3+
declare(strict_types=1);
24

35
namespace Bug7162;
46

tests/PHPStan/Analyser/nsrt/bug-7167.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.1
1+
<?php // lint >= 8.1
2+
3+
declare(strict_types = 1);
24

35
namespace Bug7167;
46

tests/PHPStan/Analyser/nsrt/bug-7176.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.1
1+
<?php // lint >= 8.1
2+
3+
declare(strict_types = 1);
24

35
namespace Bug7176Types;
46

tests/PHPStan/Analyser/nsrt/bug-9939.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1); // lint >= 8.1
1+
<?php // lint >= 8.1
2+
3+
declare(strict_types = 1);
24

35
namespace Bug9939;
46

0 commit comments

Comments
 (0)