Skip to content

Commit 77bdb54

Browse files
committed
Fixes
1 parent 93cc2fc commit 77bdb54

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

component/Geography/GpsCoordinates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function unserialize(array $serialized): self
5353
throw new NotCompliant();
5454
}
5555

56-
return new self($serialized[ 'latitude' ], $serialized[ 'longitude' ]);
56+
return new static($serialized[ 'latitude' ], $serialized[ 'longitude' ]);
5757
}
5858

5959
public static function createFromLambert93(float $x, float $y): static

component/Money/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function unserialize(array $serialized): self
8888
throw new NotCompliant();
8989
}
9090

91-
return new self(
91+
return new static(
9292
$serialized[ 'price' ],
9393
!is_null($serialized[ 'currency' ]) ? Currency::unserialize($serialized[ 'currency' ]) : null,
9494
$serialized[ 'unit' ] ?? null

component/Number/Note.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ public static function unserialize(array $serialized): self
5656
throw new NotCompliant();
5757
}
5858

59-
return new self($serialized[ 'note' ], $serialized[ 'unit' ]);
59+
return new static($serialized[ 'note' ], $serialized[ 'unit' ]);
6060
}
6161
}

component/Person/Person.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static function unserialize(array $serialized): self
7373
throw new NotCompliant();
7474
}
7575

76-
return new self(
76+
return new static(
7777
!is_null($serialized[ 'lastname' ]) ? Lastname::unserialize($serialized[ 'lastname' ]) : null,
7878
!is_null($serialized[ 'firstname' ]) ? Firstname::unserialize($serialized[ 'firstname' ]) : null,
7979
!is_null($serialized[ 'gender' ]) ? Gender::unserialize($serialized[ 'gender' ]) : null,

component/Time/DateTimeInterval.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ public static function unserialize(array $serialized): self
7575
throw new NotCompliant();
7676
}
7777

78-
return new self($serialized[ static::FROM_KEY ], $serialized[ static::TO_KEY ]);
78+
return new static($serialized[ static::FROM_KEY ], $serialized[ static::TO_KEY ]);
7979
}
8080
}

component/Time/Duration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ public static function unserialize(array $serialized): self
121121
throw new NotCompliant();
122122
}
123123

124-
return new self($serialized[ 'value' ]);
124+
return new static($serialized[ 'value' ]);
125125
}
126126
}

component/Web/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static function unserialize(array $serialized): self
7474
throw new NotCompliant();
7575
}
7676

77-
return new self(
77+
return new static(
7878
$serialized[ 'subject' ],
7979
$serialized[ 'message' ][ 'txt' ],
8080
$serialized[ 'message' ][ 'html' ],

component/Web/EmailAddressAndName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ public static function unserialize(array $serialized): self
5050
throw new NotCompliant();
5151
}
5252

53-
return new self($serialized[ 'email_address' ], $serialized[ 'name' ]);
53+
return new static($serialized[ 'email_address' ], $serialized[ 'name' ]);
5454
}
5555
}

0 commit comments

Comments
 (0)