Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony/maker-bundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 19e7a71306139799822ac377cff207a024a485c8
Choose a base ref
..
head repository: symfony/maker-bundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 46cabfdd36ec9cc726f9428eed9dbb4c9a53ed9b
Choose a head ref
Showing with 5 additions and 6 deletions.
  1. +1 −1 src/Maker/MakeTwigComponent.php
  2. +4 −5 tests/Util/fixtures/add_entity_field/User_simple_datetime.php
2 changes: 1 addition & 1 deletion src/Maker/MakeTwigComponent.php
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
$path = 'config/packages/twig_component.yaml';

if (!$this->fileManager->fileExists($path)) {
throw new RuntimeCommandException(message: 'Unable to find twig_component.yaml');
return;
}

try {
9 changes: 4 additions & 5 deletions tests/Util/fixtures/add_entity_field/User_simple_datetime.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@

namespace App\Entity;

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

#[ORM\Entity]
@@ -13,20 +12,20 @@ class User
#[ORM\Column()]
private ?int $id = null;

#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(nullable: true)]
private ?\DateTime $createdAt = null;

public function getId(): ?int
{
return $this->id;
}

public function getCreatedAt(): ?\DateTimeInterface
public function getCreatedAt(): ?\DateTime
{
return $this->createdAt;
}

public function setCreatedAt(?\DateTimeInterface $createdAt): static
public function setCreatedAt(?\DateTime $createdAt): static
{
$this->createdAt = $createdAt;