Skip to content

Commit 869ec67

Browse files
committed
remove constructor property promotion from child classes
1 parent 9db1fd2 commit 869ec67

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Analysis/Solution/Bukkit/Plugin/AuthMeShutdownSolution.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
class AuthMeShutdownSolution extends FileEditSolution
1515
{
1616
public function __construct(
17-
protected string $path = 'plugins/AuthMe/config.yml',
18-
protected FilePathType $type = FilePathType::RELATIVE,
19-
protected string $pattern = '/^(\s+)stopServer\: true$/',
20-
protected string $replacement = '$1stopServer: false'
17+
string $path = 'plugins/AuthMe/config.yml',
18+
FilePathType $type = FilePathType::RELATIVE,
19+
string $pattern = '/^(\s+)stopServer\: true$/',
20+
string $replacement = '$1stopServer: false'
2121
)
2222
{
2323
parent::__construct($path, $type, $pattern, $replacement);

src/Analysis/Solution/File/FileEditSolution.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class FileEditSolution extends FileSolution implements AutomatableSolutionInterf
2121
* @param string $replacement The replacement string for the matched pattern.
2222
*/
2323
public function __construct(
24-
protected string $path,
25-
protected FilePathType $type = FilePathType::RELATIVE,
26-
protected string $pattern,
27-
protected string $replacement
24+
string $path,
25+
FilePathType $type = FilePathType::RELATIVE,
26+
protected string $pattern,
27+
protected string $replacement
2828
)
2929
{
3030
parent::__construct($path, $type);

0 commit comments

Comments
 (0)