Skip to content

Commit d162d2d

Browse files
authored
Use double-quotes for array-shape annotations, as PHPStorm does not understand single-quotes (#2844)
1 parent f22d8ec commit d162d2d

31 files changed

+46
-46
lines changed

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Fluent interface for adding a $addFields stage to an aggregation pipeline.
1111
*
1212
* @phpstan-import-type OperatorExpression from Expr
13-
* @phpstan-type AddFieldsStageExpression array{'$addFields': array<string, OperatorExpression|mixed>}
13+
* @phpstan-type AddFieldsStageExpression array{"$addFields": array<string, OperatorExpression|mixed>}
1414
* @final
1515
*/
1616
class AddFields extends Operator

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/CollStats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Fluent interface for adding a $collStats stage to an aggregation pipeline.
1212
*
1313
* @phpstan-type CollStatsStageExpression array{
14-
* '$collStats': array{
14+
* "$collStats": array{
1515
* latencyStats?: array{histograms?: bool},
1616
* storageStats?: array{},
1717
* }

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Fluent interface for adding a $count stage to an aggregation pipeline.
1212
*
13-
* @phpstan-type CountStageExpression array{'$count': string}
13+
* @phpstan-type CountStageExpression array{"$count": string}
1414
*/
1515
class Count extends Stage
1616
{

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Densify.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
/**
1414
* Fluent interface for adding a $densify stage to an aggregation pipeline.
1515
*
16-
* @phpstan-type BoundsType 'full'|'partition'|array{0: int|float|UTCDateTime, 1: int|float|UTCDateTime}
17-
* @phpstan-type UnitType 'year'|'month'|'week'|'day'|'hour'|'minute'|'second'|'millisecond'
16+
* @phpstan-type BoundsType "full"|"partition"|array{0: int|float|UTCDateTime, 1: int|float|UTCDateTime}
17+
* @phpstan-type UnitType "year"|"month"|"week"|"day"|"hour"|"minute"|"second"|"millisecond"
1818
* @phpstan-type DensifyStageExpression array{
19-
* '$densify': object{
19+
* "$densify": object{
2020
* field: string,
2121
* partitionByFields?: list<string>,
2222
* range: object{
@@ -55,7 +55,7 @@ public function partitionByFields(string ...$fields): static
5555
* @param array|string $bounds
5656
* @param int|float $step
5757
* @phpstan-param BoundsType $bounds
58-
* @phpstan-param ''|UnitType $unit
58+
* @phpstan-param ""|UnitType $unit
5959
*/
6060
public function range($bounds, $step, string $unit = ''): static
6161
{

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Facet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Fluent interface for adding a $facet stage to an aggregation pipeline.
1616
*
1717
* @phpstan-import-type PipelineExpression from Builder
18-
* @phpstan-type FacetStageExpression array{'$facet': array<string, PipelineExpression>}
18+
* @phpstan-type FacetStageExpression array{"$facet": array<string, PipelineExpression>}
1919
*/
2020
class Facet extends Stage
2121
{

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Fill.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @phpstan-type SortDirection int|SortDirectionKeywords
2323
* @phpstan-type SortShape array<string, SortDirection>
2424
* @phpstan-type FillStageExpression array{
25-
* '$fill': array{
25+
* "$fill": array{
2626
* partitionBy?: string|OperatorExpression,
2727
* partitionByFields?: list<string>,
2828
* sortBy?: SortShape,

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Fluent interface for adding a $group stage to an aggregation pipeline.
1414
*
15-
* @phpstan-type GroupStageExpression array{'$group': array<string, mixed>}
15+
* @phpstan-type GroupStageExpression array{"$group": array<string, mixed>}
1616
*/
1717
class Group extends Operator implements GroupAccumulatorOperators
1818
{

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/IndexStats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Fluent interface for adding a $indexStats stage to an aggregation pipeline.
1212
*
13-
* @phpstan-type IndexStatsStageExpression array{'$indexStats': object}
13+
* @phpstan-type IndexStatsStageExpression array{"$indexStats": object}
1414
*/
1515
class IndexStats extends Stage
1616
{

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Limit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Fluent interface for adding a $limit stage to an aggregation pipeline.
1212
*
13-
* @phpstan-type LimitStageExpression array{'$limit': int}
13+
* @phpstan-type LimitStageExpression array{"$limit": int}
1414
*/
1515
class Limit extends Stage
1616
{

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
* @phpstan-import-type PipelineExpression from Builder
2020
* @phpstan-type PipelineParamType Builder|Stage|PipelineExpression
2121
* @phpstan-type LookupStageExpression array{
22-
* '$lookup': array{
22+
* "$lookup": array{
2323
* from: string,
24-
* 'as'?: string,
24+
* "as"?: string,
2525
* localField?: string,
2626
* foreignField?: string,
2727
* pipeline?: PipelineExpression,

0 commit comments

Comments
 (0)