Skip to content

Commit

Permalink
chore: Bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Jun 13, 2024
1 parent 0dd6669 commit bfe8344
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.0', '8.1']
php-version: ['8.1', '8.2', '8.3']
steps:
- uses: shivammathur/setup-php@v2
with:
Expand Down
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
}
],
"require": {
"php": ">=8.0",
"doctrine/orm": "<2.17",
"php": ">=8.1",
"doctrine/orm": "~2.17.0",
"jms/serializer": "^3.9.0",
"symfony/string": "5.4.*",
"symfony/translation-contracts": "^2.3",
Expand All @@ -35,7 +35,7 @@
},
"autoload": {
"psr-4": {
"RZ\\": "src/"
"RZ\\Roadiz\\": "src/"
}
},
"config": {
Expand All @@ -46,8 +46,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev",
"dev-develop": "2.2.x-dev"
"dev-master": "2.2.x-dev",
"dev-develop": "2.3.x-dev"
}
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

namespace RZ\Roadiz\Core\AbstractEntities;

use ApiPlatform\Doctrine\Orm\Filter\NumericFilter;
use ApiPlatform\Metadata\ApiFilter;
use Doctrine\Common\Comparable;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
use Symfony\Component\Serializer\Annotation as SymfonySerializer;
use ApiPlatform\Doctrine\Orm\Filter\RangeFilter;

/**
* Combined AbstractDateTimed and PositionedTrait.
Expand All @@ -28,7 +31,9 @@ abstract class AbstractDateTimedPositioned extends AbstractDateTimed implements
ORM\Column(type: "float"),
Serializer\Groups(["position"]),
Serializer\Type("float"),
SymfonySerializer\Groups(["position"])
SymfonySerializer\Groups(["position"]),
ApiFilter(RangeFilter::class),

Check failure on line 35 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.1)

Attribute class ApiPlatform\Metadata\ApiFilter does not exist.

Check failure on line 35 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.1)

Class ApiPlatform\Doctrine\Orm\Filter\RangeFilter not found.

Check failure on line 35 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.2)

Attribute class ApiPlatform\Metadata\ApiFilter does not exist.

Check failure on line 35 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.2)

Class ApiPlatform\Doctrine\Orm\Filter\RangeFilter not found.

Check failure on line 35 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.3)

Attribute class ApiPlatform\Metadata\ApiFilter does not exist.

Check failure on line 35 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.3)

Class ApiPlatform\Doctrine\Orm\Filter\RangeFilter not found.
ApiFilter(NumericFilter::class)

Check failure on line 36 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.1)

Attribute class ApiPlatform\Metadata\ApiFilter does not exist.

Check failure on line 36 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.1)

Class ApiPlatform\Doctrine\Orm\Filter\NumericFilter not found.

Check failure on line 36 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.2)

Attribute class ApiPlatform\Metadata\ApiFilter does not exist.

Check failure on line 36 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.2)

Class ApiPlatform\Doctrine\Orm\Filter\NumericFilter not found.

Check failure on line 36 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.3)

Attribute class ApiPlatform\Metadata\ApiFilter does not exist.

Check failure on line 36 in src/Core/AbstractEntities/AbstractDateTimedPositioned.php

View workflow job for this annotation

GitHub Actions / run-tests (8.3)

Class ApiPlatform\Doctrine\Orm\Filter\NumericFilter not found.
]
protected float $position = 0.0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ abstract class AbstractField extends AbstractPositioned
];

#[
ORM\Column(name: "group_name", type: "string", nullable: true),
ORM\Column(name: "group_name", type: "string", length: 250, nullable: true),
Assert\Length(max: 250),
SymfonySerializer\Groups(["node_type", "setting"]),
Serializer\Groups(["node_type", "setting"]),
Expand All @@ -265,7 +265,7 @@ abstract class AbstractField extends AbstractPositioned
protected ?string $groupName = null;

#[
ORM\Column(name: "group_name_canonical", type: "string", nullable: true),
ORM\Column(name: "group_name_canonical", type: "string", length: 250, nullable: true),
Serializer\Groups(["node_type", "setting"]),
SymfonySerializer\Groups(["node_type", "setting"]),
Assert\Length(max: 250),
Expand All @@ -275,7 +275,7 @@ abstract class AbstractField extends AbstractPositioned
protected ?string $groupNameCanonical = null;

#[
ORM\Column(type: "string"),
ORM\Column(type: "string", length: 250),
Serializer\Expose,
Serializer\Groups(["node_type", "setting"]),
SymfonySerializer\Groups(["node_type", "setting"]),
Expand All @@ -287,7 +287,7 @@ abstract class AbstractField extends AbstractPositioned
protected string $name;

#[
ORM\Column(type: "string"),
ORM\Column(type: "string", length: 250),
Serializer\Expose,
Serializer\Groups(["node_type", "setting"]),
Serializer\Type("string"),
Expand All @@ -299,7 +299,7 @@ abstract class AbstractField extends AbstractPositioned
protected ?string $label;

#[
ORM\Column(type: "string", nullable: true),
ORM\Column(type: "string", length: 250, nullable: true),
Serializer\Expose,
Serializer\Groups(["node_type", "setting"]),
SymfonySerializer\Groups(["node_type", "setting"]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
abstract class AbstractHuman extends AbstractDateTimed
{
#[
ORM\Column(type: "string", unique: true),
ORM\Column(type: "string", length: 200, unique: true),
Serializer\Groups(["user_personal", "human"]),
SymfonySerializer\Groups(["user_personal", "human"]),
Assert\NotNull(),
Expand All @@ -37,47 +37,47 @@ abstract class AbstractHuman extends AbstractDateTimed
* Public name (pseudonyme) that can be displayed to a public audience.
*/
#[
ORM\Column(name: "publicName", type: "string", nullable: true),
ORM\Column(name: "publicName", type: "string", length: 250, nullable: true),
Serializer\Groups(["user_public", "human"]),
SymfonySerializer\Groups(["user_public", "human"]),
Assert\Length(max: 250)
]
protected ?string $publicName = null;

#[
ORM\Column(name: "firstName", type: "string", nullable: true),
ORM\Column(name: "firstName", type: "string", length: 250, nullable: true),
Serializer\Groups(["user_personal", "human"]),
SymfonySerializer\Groups(["user_personal", "human"]),
Assert\Length(max: 250)
]
protected ?string $firstName = null;

#[
ORM\Column(name: "lastName", type: "string", nullable: true),
ORM\Column(name: "lastName", type: "string", length: 250, nullable: true),
Serializer\Groups(["user_personal", "human"]),
SymfonySerializer\Groups(["user_personal", "human"]),
Assert\Length(max: 250)
]
protected ?string $lastName = null;

#[
ORM\Column(type: "string", nullable: true),
ORM\Column(type: "string", length: 50, nullable: true),
Serializer\Groups(["user_personal", "human"]),
SymfonySerializer\Groups(["user_personal", "human"]),
Assert\Length(max: 20)
Assert\Length(max: 50)
]
protected ?string $phone = null;

#[
ORM\Column(type: "string", nullable: true),
ORM\Column(type: "string", length: 250, nullable: true),
Serializer\Groups(["user_personal", "human"]),
SymfonySerializer\Groups(["user_personal", "human"]),
Assert\Length(max: 250)
]
protected ?string $company = null;

#[
ORM\Column(type: "string", nullable: true),
ORM\Column(type: "string", length: 250, nullable: true),
Serializer\Groups(["user_personal", "human"]),
SymfonySerializer\Groups(["user_personal", "human"]),
Assert\Length(max: 250)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bfe8344

Please sign in to comment.