Skip to content

Commit

Permalink
fix: Avoid dynamic properties not allowed error and include 8.2 in CI (
Browse files Browse the repository at this point in the history
…#113)

Co-authored-by: Elías Fernández <[email protected]>
  • Loading branch information
nickevansuk and elias-playfinder authored Aug 8, 2024
1 parent 96d1621 commit 15227e9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['5.6', '7.3', '7.4', '8.0']
php-versions: ['5.6', '7.3', '7.4', '8.0', '8.2']
name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
Expand Down
7 changes: 6 additions & 1 deletion src/Validators/EnumValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class EnumValidator extends BaseValidator
{
/**
* @var string
*/
protected $classname;

public function __construct($classname)
{
$this->classname = $classname;
Expand All @@ -17,7 +22,7 @@ public function __construct($classname)
* It is therefore recommended to call the "run" method first before this.
*
* @param mixed $value The value to coerce.
* @return int The coerced value
* @return mixed The coerced value
*/
public function coerce($value)
{
Expand Down
5 changes: 5 additions & 0 deletions src/Validators/InstanceValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

class InstanceValidator extends BaseValidator
{
/**
* @var string
*/
protected $classname;

public function __construct($classname)
{
$this->classname = $classname;
Expand Down
5 changes: 5 additions & 0 deletions src/Validators/RpdeEnumValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

class RpdeEnumValidator extends BaseValidator
{
/**
* @var string
*/
protected $classname;

public function __construct($classname)
{
$this->classname = $classname;
Expand Down

0 comments on commit 15227e9

Please sign in to comment.