Skip to content

Instantly share code, notes, and snippets.

@beberlei

beberlei/foo.php Secret

Created March 26, 2020 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beberlei/b758c7a14e13d51074abed602c265b5c to your computer and use it in GitHub Desktop.
Save beberlei/b758c7a14e13d51074abed602c265b5c to your computer and use it in GitHub Desktop.
<?php
class User
{
/** @ORM\Column(type="string") */
private string $email;
public function __construct(string $email)
{
$this->email = $email;
}
}
class User
{
public function __construct(
/** @ORM\Column(type="string") */
private string $email,
) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment