Your project must not use PHP super globals

More information: https://insight.symfony.com/what-we-analyse/symfony.use_super_globals

  1. public function __invoke(SendContactEmail $message): void
  2. {
  3. $email = (new Email())
  4. ->from($message->getEmail())
  5. ->to($_ENV['EMAIL_TO'])
    $_ENV super global should not be used.
    Time to fix: about 2 hours
    Read doc Permalink Copy Prompt
    Last edited by Luigi Gandemer
  6. ->subject("Portfolio contact from {$message->getName()}")
  7. ->html("
  8. <h2>New contact from your portfolio</h2>
  9. <p><strong>Name:</strong> {$message->getName()}</p>
  10. <p><strong>Email:</strong> {$message->getEmail()}</p>

Your project files must be encoded in UTF-8

More information: https://insight.symfony.com/what-we-analyse/web.non_utf8_encoding

This file uses utf-16le text encoding. Prefer UTF-8 to avoid cross-encoding issues.
Time to fix: about 30 minutes
Read doc Permalink Copy Prompt
Last edited by Luigi Gandemer

Your project must provide a favicon in its public directory

More information: https://insight.symfony.com/what-we-analyse/web.missing_favicon

in public
No favicon found in the web root directory
Time to fix: about 1 hour
Read doc Permalink Copy Prompt
Last edited by Luigi Gandemer
  • public
    • images
    • index.php
    • robots.txt
    • site.webmanifest

Your project error pages must be customised 2

More information: https://insight.symfony.com/what-we-analyse/symfony.configuration.error_pages_should_be_customised

You should customize the 404 error page.
Time to fix: about 4 hours
Read doc Permalink Copy Prompt
Collective
You should customize the 500 error page.
Time to fix: about 4 hours
Read doc Permalink Copy Prompt
Collective

Your project should use return types 2

More information: https://insight.symfony.com/what-we-analyse/php.missing_return_typehint

  1. {
  2. $this->companyName = $companyName;
  3. return $this;
  4. }
  5. public function getTasks(): Collection { return $this->tasks; }
    Method App\Entity\Experience::getTasks() return type with generic interface Doctrine\Common\Collections\Collection does not specify its types: TKey, T
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Luigi Gandemer
  6. public function addTask(Task $task): static
  7. {
  8. if (!$this->tasks->contains($task)) {
  9. $this->tasks->add($task);
in src/Entity/Project.php, line 102
  1. {
  2. $this->image = $image;
  3. return $this;
  4. }
  5. public function getTechnologies(): Collection { return $this->technologies; }
    Method App\Entity\Project::getTechnologies() return type with generic interface Doctrine\Common\Collections\Collection does not specify its types: TKey, T
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Luigi Gandemer
  6. public function addTechnology(Technology $technology): static
  7. {
  8. if (!$this->technologies->contains($technology)) {
  9. $this->technologies->add($technology);

Your project must not contain invalid function or method calls

More information: https://insight.symfony.com/what-we-analyse/php.invalid_call

  1. public function __invoke(SendContactEmail $message): void
  2. {
  3. $email = (new Email())
  4. ->from($message->getEmail())
  5. ->to($_ENV['EMAIL_TO'])
    Parameter #1 ...$addresses of method Symfony\Component\Mime\Email::to() expects string|Symfony\Component\Mime\Address, mixed given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Luigi Gandemer
  6. ->subject("Portfolio contact from {$message->getName()}")
  7. ->html("
  8. <h2>New contact from your portfolio</h2>
  9. <p><strong>Name:</strong> {$message->getName()}</p>
  10. <p><strong>Email:</strong> {$message->getEmail()}</p>

Text files should end with a valid new line character.

More information: https://insight.symfony.com/what-we-analyse/missing_e_o_l

in README.md, line 14
  1. | API | http://localhost:8080 |
  2. | LiteSpeed Admin | http://localhost:7080 |
  3. | RabbitMQ UI | http://localhost:15672 |
  4. | Mailhog UI | http://localhost:8025 |
  5. | phpMyAdmin | http://localhost:8081 |
  6. This file ends with no newline character, or with a different newline character than other files in your project. It won't render properly on a terminal, and it's considered a bad practice.
    Time to fix: about 15 minutes
    Read doc Permalink Copy Prompt
    Last edited by Luigi Gandemer