Skip to content

Commit 309064d

Browse files
committed
method rename
1 parent c058b98 commit 309064d

7 files changed

+7
-7
lines changed

src/Ast/Builder/CodeBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function localProperty(
186186

187187
if (
188188
$readonly
189-
&& $this->phpVersion->isReadonlyPropertiesSupported()
189+
&& $this->phpVersion->isReadonlyPropertySupported()
190190
) {
191191
$property->makeReadonly();
192192
}

src/Ast/PhpVersion.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function isEnumSupported(): bool
9494
return $this->isVersionGreaterThanOrEqualTo81();
9595
}
9696

97-
public function isReadonlyPropertiesSupported(): bool
97+
public function isReadonlyPropertySupported(): bool
9898
{
9999
return $this->isVersionGreaterThanOrEqualTo81();
100100
}

src/Generator/ClientGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected function generateConstructor(): ClassMethod
145145
$parameter->makePrivate();
146146
}
147147
}
148-
if ($this->phpVersion->isReadonlyPropertiesSupported()) {
148+
if ($this->phpVersion->isReadonlyPropertySupported()) {
149149
foreach ($parameters as $parameter) {
150150
$parameter->makeReadonly();
151151
}

src/Generator/RequestGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ protected function generateConstructor(
197197
$param->makePrivate();
198198
}
199199
}
200-
if ($this->phpVersion->isReadonlyPropertiesSupported()) {
200+
if ($this->phpVersion->isReadonlyPropertySupported()) {
201201
foreach ($params as $param) {
202202
$param->makeReadonly();
203203
}

src/Generator/RequestMapperGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function generate(Specification $specification, PhpFileCollection $fileRe
7272
$parameter->makePrivate();
7373
}
7474
}
75-
if ($this->phpVersion->isReadonlyPropertiesSupported()) {
75+
if ($this->phpVersion->isReadonlyPropertySupported()) {
7676
foreach ($parameters as $parameter) {
7777
$parameter->makeReadonly();
7878
}

src/Generator/SchemaGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected function generateConstructor(Field $root): ?ClassMethod
165165
$param->makePrivate();
166166
}
167167
}
168-
if ($this->phpVersion->isReadonlyPropertiesSupported()) {
168+
if ($this->phpVersion->isReadonlyPropertySupported()) {
169169
foreach ($params as $param) {
170170
$param->makeReadonly();
171171
}

src/Generator/SchemaMapperGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected function generateConstructor(Field $root): ?ClassMethod
136136
$param->makePrivate();
137137
}
138138
}
139-
if ($this->phpVersion->isReadonlyPropertiesSupported()) {
139+
if ($this->phpVersion->isReadonlyPropertySupported()) {
140140
foreach ($params as $param) {
141141
$param->makeReadonly();
142142
}

0 commit comments

Comments
 (0)