Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89a3011

Browse files
committed
[JsonStreamer] Remove "nikic/php-parser" dependency
1 parent69018fe commit89a3011

25 files changed

+795
-1480
lines changed

‎src/Symfony/Component/JsonStreamer/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.4
5+
---
6+
7+
* Remove`nikic/php-parser` dependency
8+
49
7.3
510
---
611

‎src/Symfony/Component/JsonStreamer/DataModel/DataAccessorInterface.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎src/Symfony/Component/JsonStreamer/DataModel/FunctionDataAccessor.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

‎src/Symfony/Component/JsonStreamer/DataModel/PhpExprDataAccessor.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎src/Symfony/Component/JsonStreamer/DataModel/PropertyDataAccessor.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎src/Symfony/Component/JsonStreamer/DataModel/Read/ObjectNode.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespaceSymfony\Component\JsonStreamer\DataModel\Read;
1313

14-
useSymfony\Component\JsonStreamer\DataModel\DataAccessorInterface;
1514
useSymfony\Component\TypeInfo\Type\ObjectType;
1615
useSymfony\Component\TypeInfo\Type\UnionType;
1716

@@ -25,7 +24,7 @@
2524
finalclass ObjectNodeimplements DataModelNodeInterface
2625
{
2726
/**
28-
* @param array<string, array{name: string, value: DataModelNodeInterface, accessor: callable(DataAccessorInterface):DataAccessorInterface}> $properties
27+
* @param array<string, array{name: string, value: DataModelNodeInterface, accessor: callable(string):string}> $properties
2928
*/
3029
publicfunction__construct(
3130
privateObjectType$type,
@@ -50,7 +49,7 @@ public function getType(): ObjectType
5049
}
5150

5251
/**
53-
* @return array<string, array{name: string, value: DataModelNodeInterface, accessor: callable(DataAccessorInterface):DataAccessorInterface}>
52+
* @return array<string, array{name: string, value: DataModelNodeInterface, accessor: callable(string):string}>
5453
*/
5554
publicfunctiongetProperties():array
5655
{

‎src/Symfony/Component/JsonStreamer/DataModel/ScalarDataAccessor.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎src/Symfony/Component/JsonStreamer/DataModel/VariableDataAccessor.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎src/Symfony/Component/JsonStreamer/DataModel/Write/BackedEnumNode.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespaceSymfony\Component\JsonStreamer\DataModel\Write;
1313

14-
useSymfony\Component\JsonStreamer\DataModel\DataAccessorInterface;
1514
useSymfony\Component\TypeInfo\Type\BackedEnumType;
1615

1716
/**
@@ -26,12 +25,12 @@
2625
finalclass BackedEnumNodeimplements DataModelNodeInterface
2726
{
2827
publicfunction__construct(
29-
privateDataAccessorInterface$accessor,
28+
privatestring$accessor,
3029
privateBackedEnumType$type,
3130
) {
3231
}
3332

34-
publicfunctionwithAccessor(DataAccessorInterface$accessor):self
33+
publicfunctionwithAccessor(string$accessor):self
3534
{
3635
returnnewself($accessor,$this->type);
3736
}
@@ -41,7 +40,7 @@ public function getIdentifier(): string
4140
return (string)$this->getType();
4241
}
4342

44-
publicfunctiongetAccessor():DataAccessorInterface
43+
publicfunctiongetAccessor():string
4544
{
4645
return$this->accessor;
4746
}

‎src/Symfony/Component/JsonStreamer/DataModel/Write/CollectionNode.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespaceSymfony\Component\JsonStreamer\DataModel\Write;
1313

14-
useSymfony\Component\JsonStreamer\DataModel\DataAccessorInterface;
1514
useSymfony\Component\TypeInfo\Type\CollectionType;
1615

1716
/**
@@ -24,13 +23,13 @@
2423
finalclass CollectionNodeimplements DataModelNodeInterface
2524
{
2625
publicfunction__construct(
27-
privateDataAccessorInterface$accessor,
26+
privatestring$accessor,
2827
privateCollectionType$type,
2928
privateDataModelNodeInterface$item,
3029
) {
3130
}
3231

33-
publicfunctionwithAccessor(DataAccessorInterface$accessor):self
32+
publicfunctionwithAccessor(string$accessor):self
3433
{
3534
returnnewself($accessor,$this->type,$this->item);
3635
}
@@ -40,7 +39,7 @@ public function getIdentifier(): string
4039
return (string)$this->getType();
4140
}
4241

43-
publicfunctiongetAccessor():DataAccessorInterface
42+
publicfunctiongetAccessor():string
4443
{
4544
return$this->accessor;
4645
}

‎src/Symfony/Component/JsonStreamer/DataModel/Write/CompositeNode.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespaceSymfony\Component\JsonStreamer\DataModel\Write;
1313

14-
useSymfony\Component\JsonStreamer\DataModel\DataAccessorInterface;
1514
useSymfony\Component\JsonStreamer\Exception\InvalidArgumentException;
1615
useSymfony\Component\TypeInfo\Type;
1716
useSymfony\Component\TypeInfo\Type\UnionType;
@@ -43,7 +42,7 @@ final class CompositeNode implements DataModelNodeInterface
4342
* @param list<DataModelNodeInterface> $nodes
4443
*/
4544
publicfunction__construct(
46-
privateDataAccessorInterface$accessor,
45+
privatestring$accessor,
4746
array$nodes,
4847
) {
4948
if (\count($nodes) <2) {
@@ -60,7 +59,7 @@ public function __construct(
6059
$this->nodes =$nodes;
6160
}
6261

63-
publicfunctionwithAccessor(DataAccessorInterface$accessor):self
62+
publicfunctionwithAccessor(string$accessor):self
6463
{
6564
returnnewself($accessor,array_map(staticfn (DataModelNodeInterface$n):DataModelNodeInterface =>$n->withAccessor($accessor),$this->nodes));
6665
}
@@ -70,7 +69,7 @@ public function getIdentifier(): string
7069
return (string)$this->getType();
7170
}
7271

73-
publicfunctiongetAccessor():DataAccessorInterface
72+
publicfunctiongetAccessor():string
7473
{
7574
return$this->accessor;
7675
}

‎src/Symfony/Component/JsonStreamer/DataModel/Write/DataModelNodeInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespaceSymfony\Component\JsonStreamer\DataModel\Write;
1313

14-
useSymfony\Component\JsonStreamer\DataModel\DataAccessorInterface;
1514
useSymfony\Component\TypeInfo\Type;
1615

1716
/**
@@ -27,7 +26,7 @@ public function getIdentifier(): string;
2726

2827
publicfunctiongetType():Type;
2928

30-
publicfunctiongetAccessor():DataAccessorInterface;
29+
publicfunctiongetAccessor():string;
3130

32-
publicfunctionwithAccessor(DataAccessorInterface$accessor):self;
31+
publicfunctionwithAccessor(string$accessor):self;
3332
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp