Skip to content

Commit

Permalink
Merge pull request #31 from 21TORR/updates
Browse files Browse the repository at this point in the history
Bump deps + use constants & attributes only
  • Loading branch information
apfelbox authored Dec 21, 2023
2 parents 357ca42 + d445f5b commit b2102fa
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.7.0 (unreleased)
=====

* (improvement) Bump required Symfony.


2.6.1
=====

Expand Down
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
"21torr/bundle-helpers": "^2.1",
"psr/log": "^3.0",
"symfony/dependency-injection": "^6.2",
"symfony/deprecation-contracts": "^3.1",
"symfony/framework-bundle": "^6.2",
"symfony/http-foundation": "^6.2",
"symfony/http-kernel": "^6.2"
"symfony/deprecation-contracts": "^3.4",
"symfony/framework-bundle": "^6.4",
"symfony/http-foundation": "^6.4",
"symfony/http-kernel": "^6.4"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"doctrine/dbal": "^2.13",
"doctrine/orm": "^2.13",
"phpunit/phpunit": "^9.5",
"doctrine/orm": "^2.16",
"phpunit/phpunit": "^9.6",
"roave/security-advisories": "dev-latest",
"symfony/console": "^6.2",
"symfony/form": "^6.2",
"symfony/phpunit-bridge": "^6.2",
"symfony/routing": "^6.2",
"symfony/security-bundle": "^6.2",
"symfony/translation": "^6.2",
"twig/twig": "^3.4"
"symfony/console": "^6.4",
"symfony/form": "^6.4",
"symfony/phpunit-bridge": "^6.4",
"symfony/routing": "^6.4",
"symfony/security-bundle": "^6.4",
"symfony/translation": "^6.4",
"twig/twig": "^3.8"
},
"suggest": {
"doctrine/dbal": "To add the SerializedType",
Expand Down
14 changes: 4 additions & 10 deletions src/Entity/Traits/IdTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Torr\Rad\Entity\Traits;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Torr\Rad\Entity\Interfaces\EntityInterface;

Expand All @@ -11,17 +12,10 @@
trait IdTrait
{
/**
* @ORM\Id()
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(name="id", type="integer")
*/
#[
ORM\Id(),
ORM\GeneratedValue(strategy: "AUTO"),
ORM\Column(name: "id", type: "integer")
]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "AUTO")]
#[ORM\Column(name: "id", type: Types::INTEGER)]
private ?int $id = null;


Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Traits/TimestampsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Torr\Rad\Entity\Traits;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

/**
Expand All @@ -16,9 +17,8 @@ trait TimestampsTrait
private \DateTimeImmutable $timeCreated;

/**
* @ORM\Column(name="time_modified", type="datetimetz_immutable", nullable=true)
*/
#[ORM\Column(name: "time_modified", type: "datetimetz_immutable", nullable: true)]
#[ORM\Column(name: "time_modified", type: Types::DATETIMETZ_IMMUTABLE, nullable: true)]
private ?\DateTimeImmutable $timeModified = null;

/**
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/c-norm/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require-dev": {
"ergebnis/composer-normalize": "^2.28"
"ergebnis/composer-normalize": "^2.39"
},
"config": {
"allow-plugins": {
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require-dev": {
"21torr/php-cs-fixer": "^1.0.1"
"21torr/php-cs-fixer": "^1.0.2"
}
}

0 comments on commit b2102fa

Please sign in to comment.