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

Commitc99291b

Browse files
committed
Remove readonly for now, to be consistent
1 parent706fb1a commitc99291b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎components/clock.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ determine the current time::
5050
class ExpirationChecker
5151
{
5252
public function __construct(
53-
privatereadonlyClockInterface $clock
53+
private ClockInterface $clock
5454
) {}
5555

5656
public function isExpired(DateTimeInterface $validUntil): bool

‎quick_tour/the_architecture.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ difference is that it's done in the constructor:
137137
class GreetingGenerator
138138
{
139139
+ public function __construct(
140-
+ privatereadonlyLoggerInterface $logger,
140+
+ private LoggerInterface $logger,
141141
+ ) {
142142
+ }
143143
@@ -171,7 +171,7 @@ that extends ``AbstractExtension``::
171171
class GreetExtension extends AbstractExtension
172172
{
173173
public function __construct(
174-
privatereadonlyGreetingGenerator $greetingGenerator,
174+
private GreetingGenerator $greetingGenerator,
175175
) {
176176
}
177177

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp