-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from fezfez/php8.2
Add PHP 8.2 support
- Loading branch information
Showing
6 changed files
with
149 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ jobs: | |
name: "PHPUnit" | ||
uses: "doctrine/.github/.github/workflows/[email protected]" | ||
with: | ||
php-versions: '["7.4", "8.0", "8.1"]' | ||
php-versions: '["7.4", "8.0", "8.1", "8.2"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineTest\Laminas\Hydrator\Assets; | ||
|
||
readonly class SimpleEntityReadonlyPhp82 | ||
{ | ||
protected ?int $id; | ||
|
||
protected ?string $field; | ||
|
||
public function __construct(?int $id, ?string $field) | ||
{ | ||
$this->id = $id; | ||
$this->field = $field; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineTest\Laminas\Hydrator\Assets; | ||
|
||
class SimpleEntityWithReadonlyPropsPhp81 | ||
{ | ||
protected readonly ?int $id; | ||
|
||
protected ?string $field; | ||
|
||
public function __construct(?int $id) | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
public function getId(): int | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function setField(string $field): void | ||
{ | ||
$this->field = $field; | ||
} | ||
|
||
public function getField(): string | ||
{ | ||
return $this->field; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters