Skip to content

Commit fb52173

Browse files
committed
Remove readonly modifier to maintain PHP 8.1 compatibility
ERM20742
1 parent fafe30f commit fb52173

53 files changed

Lines changed: 57 additions & 57 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-php.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
include:
2626
- mw: 'REL1_43'
27-
php: '8.3'
27+
php: '8.1'
2828

2929
runs-on: ubuntu-latest
3030

@@ -112,15 +112,15 @@ jobs:
112112
run: php tests/phpunit/phpunit.php -c extensions/NeoWiki/phpunit.xml.dist
113113

114114
phpcs:
115-
name: "PHPCS with PHP 8.3"
115+
name: "PHPCS with PHP 8.1"
116116

117117
runs-on: ubuntu-latest
118118

119119
steps:
120120
- name: Setup PHP
121121
uses: shivammathur/setup-php@v2
122122
with:
123-
php-version: 8.3
123+
php-version: 8.1
124124

125125
- name: Checkout NeoExtension
126126
uses: actions/checkout@v6
@@ -138,7 +138,7 @@ jobs:
138138
matrix:
139139
include:
140140
- mw: 'REL1_43'
141-
php: '8.3'
141+
php: '8.1'
142142

143143
runs-on: ubuntu-latest
144144

@@ -204,7 +204,7 @@ jobs:
204204
# matrix:
205205
# include:
206206
# - mw: 'master'
207-
# php: '8.3'
207+
# php: '8.1'
208208
#
209209
# runs-on: ubuntu-latest
210210
#

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.3",
19+
"php": "^8.1",
2020
"composer/installers": "^2|^1.0.1",
2121
"opis/json-schema": "^2.3.0",
2222
"laudis/neo4j-php-client": "^3.1.2",

src/Application/Actions/CreateSubject/CreateSubjectAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use ProfessionalWiki\NeoWiki\Application\SubjectAuthorizer;
1818
use RuntimeException;
1919

20-
readonly class CreateSubjectAction {
20+
class CreateSubjectAction {
2121

2222
public function __construct(
2323
private CreateSubjectPresenter $presenter,

src/Application/Actions/CreateSubject/CreateSubjectRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace ProfessionalWiki\NeoWiki\Application\Actions\CreateSubject;
66

7-
readonly class CreateSubjectRequest {
7+
class CreateSubjectRequest {
88

99
public function __construct(
1010
public int $pageId,

src/Application/Actions/DeleteSubject/DeleteSubjectAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use ProfessionalWiki\NeoWiki\Domain\Subject\SubjectId;
99
use ProfessionalWiki\NeoWiki\Application\SubjectAuthorizer;
1010

11-
readonly class DeleteSubjectAction {
11+
class DeleteSubjectAction {
1212

1313
public function __construct(
1414
private SubjectRepository $subjectRepository,

src/Application/Actions/PatchSubject/PatchSubjectAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use ProfessionalWiki\NeoWiki\Domain\Subject\SubjectLabel;
1515
use RuntimeException;
1616

17-
readonly class PatchSubjectAction {
17+
class PatchSubjectAction {
1818

1919
public function __construct(
2020
private SubjectRepository $subjectRepository,

src/Application/Actions/SetMainSubject/SetMainSubjectAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use ProfessionalWiki\NeoWiki\Domain\Subject\Subject;
1212
use ProfessionalWiki\NeoWiki\Domain\Subject\SubjectId;
1313

14-
readonly class SetMainSubjectAction {
14+
class SetMainSubjectAction {
1515

1616
public function __construct(
1717
private SetMainSubjectPresenter $presenter,

src/Application/Actions/SetMainSubject/SetMainSubjectRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace ProfessionalWiki\NeoWiki\Application\Actions\SetMainSubject;
66

7-
readonly class SetMainSubjectRequest {
7+
class SetMainSubjectRequest {
88

99
public function __construct(
1010
public int $pageId,

src/Application/CompositeCypherQueryValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace ProfessionalWiki\NeoWiki\Application;
66

7-
readonly class CompositeCypherQueryValidator implements CypherQueryValidator {
7+
class CompositeCypherQueryValidator implements CypherQueryValidator {
88

99
/**
1010
* @param CypherQueryValidator[] $validators

src/Application/Queries/GetLayout/GetLayoutQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use ProfessionalWiki\NeoWiki\Domain\Layout\LayoutName;
99
use ProfessionalWiki\NeoWiki\Presentation\LayoutPresentationSerializer;
1010

11-
readonly class GetLayoutQuery {
11+
class GetLayoutQuery {
1212

1313
public function __construct(
1414
private GetLayoutPresenter $presenter,

0 commit comments

Comments
 (0)