Skip to content

Commit 5b7992f

Browse files
Merge pull request #3 from php-static-analysis/codex/update-php-static-analysis-dependencies-to-0.5.0
feat: store attribute constructor parameters
2 parents b907bf1 + f2be090 commit 5b7992f

33 files changed

+35
-35
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
"prefer-stable": true,
2525
"require": {
2626
"php": ">=8.1",
27-
"php-static-analysis/attributes": "^0.4.1 || dev-main",
28-
"php-static-analysis/node-visitor": "^0.4.1 || dev-main",
27+
"php-static-analysis/attributes": "^0.5.0 || dev-main",
28+
"php-static-analysis/node-visitor": "^0.5.0 || dev-main",
2929
"phpstan/phpstan": "^2.0",
3030
"webmozart/assert": "^1.11"
3131
},
3232
"require-dev": {
33-
"php-static-analysis/psalm-plugin": "^0.4.1 || dev-main",
33+
"php-static-analysis/psalm-plugin": "^0.5.0 || dev-main",
3434
"phpstan/phpstan-deprecation-rules": "^2.0",
3535
"phpunit/phpunit": "^9.0",
3636
"symplify/easy-coding-standard": "^12.1",

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
errorLevel="1"
88
findUnusedBaselineEntry="true"
99
findUnusedCode="false"
10+
ensureOverrideAttribute="false"
1011
>
1112
<projectFiles>
1213
<directory name="src" />

src/Parser/AttributeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PhpStaticAnalysis\NodeVisitor\AttributeNodeVisitor;
1313
use Webmozart\Assert\Assert;
1414

15-
class AttributeParser implements Parser
15+
final class AttributeParser implements Parser
1616
{
1717
public function __construct(
1818
private Parser $parser

tests/AssertAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace test\PhpStaticAnalysis\PHPStanExtension;
44

5-
class AssertAttributeTest extends BaseAttributeTestCase
5+
final class AssertAttributeTest extends BaseAttributeTestCase
66
{
77
public function testMethodAssertAttribute(): void
88
{

tests/AssertIfFalseAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use test\PhpStaticAnalysis\PHPStanExtension\BaseAttributeTestCase;
55

6-
class AssertIfFalseAttributeTest extends BaseAttributeTestCase
6+
final class AssertIfFalseAttributeTest extends BaseAttributeTestCase
77
{
88
public function testMethodAssertIfFalseAttribute(): void
99
{

tests/AssertIfTrueAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use test\PhpStaticAnalysis\PHPStanExtension\BaseAttributeTestCase;
55

6-
class AssertIfTrueAttributeTest extends BaseAttributeTestCase
6+
final class AssertIfTrueAttributeTest extends BaseAttributeTestCase
77
{
88
public function testMethodAssertIfTrueAttribute(): void
99
{

tests/DefineTypeAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace test\PhpStaticAnalysis\PHPStanExtension;
44

5-
class DefineTypeAttributeTest extends BaseAttributeTestCase
5+
final class DefineTypeAttributeTest extends BaseAttributeTestCase
66
{
77
public function testClassDefineTypeAttribute(): void
88
{

tests/DeprecatedAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace test\PhpStaticAnalysis\PHPStanExtension;
44

5-
class DeprecatedAttributeTest extends BaseAttributeTestCase
5+
final class DeprecatedAttributeTest extends BaseAttributeTestCase
66
{
77
public function testClassDeprecatedAttribute(): void
88
{

tests/ImmutableAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use test\PhpStaticAnalysis\PHPStanExtension\BaseAttributeTestCase;
55

6-
class ImmutableAttributeTest extends BaseAttributeTestCase
6+
final class ImmutableAttributeTest extends BaseAttributeTestCase
77
{
88
public function testClassImmutableAttribute(): void
99
{

tests/ImportTypeAttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace test\PhpStaticAnalysis\PHPStanExtension;
44

5-
class ImportTypeAttributeTest extends BaseAttributeTestCase
5+
final class ImportTypeAttributeTest extends BaseAttributeTestCase
66
{
77
public function testClassImportTypeAttribute(): void
88
{

0 commit comments

Comments
 (0)