Skip to content

Commit

Permalink
TASK: Upgrade to php 8 readonly properties
Browse files Browse the repository at this point in the history
After rebasing we have php 8.1 as min version and can rely on that.
  • Loading branch information
mficzel committed Feb 17, 2024
1 parent d5984a6 commit 3deb1b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Neos.Flow/Classes/Session/Data/SessionIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class SessionIdentifier
{
private function __construct(
public /*readonly*/ $value
public readonly string $value
) {
}

Expand Down
8 changes: 4 additions & 4 deletions Neos.Flow/Classes/Session/Data/SessionMetaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class SessionMetaData
* @param string[] $tags
*/
public function __construct(
public /** readonly */ SessionIdentifier $sessionIdentifier,
public /** readonly */ StorageIdentifier $storageIdentifier,
public /** readonly */ int $lastActivityTimestamp,
public /** readonly */ array $tags
public readonly SessionIdentifier $sessionIdentifier,
public readonly StorageIdentifier $storageIdentifier,
public readonly int $lastActivityTimestamp,
public readonly array $tags
) {
}

Expand Down
2 changes: 1 addition & 1 deletion Neos.Flow/Classes/Session/Data/StorageIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class StorageIdentifier
{
private function __construct(
public /*readonly*/ $value
public readonly string $value
) {
}

Expand Down

0 comments on commit 3deb1b0

Please sign in to comment.