title: To use Doctrine entity attributes you'll need PHP 8, doctrine/orm 2.9, doctrine/doctrine-bundle 2.4 and symfony/framework-bundle 5.2
body: <p>I have a problem on my Symfony project version <strong>4.4.9</strong>, with PHP 8. when I run <code>php bin/console make:entity</code> these errors appear:</p>
  <blockquote>
  <p>To use Doctrine entity attributes you'll need PHP 8, doctrine/orm 2.9, doctrine/doctrine-bundle 2.4 and
  symfony/framework-bundle 5.2.</p>
  </blockquote>
  <p>composer.json</p>
  <pre><code>    &quot;php&quot;: &quot;&gt;=7.1.3&quot;,
      &quot;ext-ctype&quot;: &quot;*&quot;,
      &quot;ext-iconv&quot;: &quot;*&quot;,
      &quot;doctrine/annotations&quot;: &quot;^1.13&quot;,
      &quot;doctrine/doctrine-bundle&quot;: &quot;^2.5&quot;,
      &quot;doctrine/doctrine-migrations-bundle&quot;: &quot;^3.2&quot;,
      &quot;doctrine/orm&quot;: &quot;2.9.6&quot;,
      &quot;symfony/console&quot;: &quot;4.4.*&quot;,
      &quot;symfony/dotenv&quot;: &quot;4.4.*&quot;,
      &quot;symfony/flex&quot;: &quot;^1.3.1&quot;,
      &quot;symfony/framework-bundle&quot;: &quot;4.4.*&quot;,
      &quot;symfony/proxy-manager-bridge&quot;: &quot;4.4.*&quot;,
      &quot;symfony/yaml&quot;: &quot;4.4.*&quot;
  },
  </code></pre>
  <p>and my <strong>PHP Version : 8.1</strong>
  <a href="https://i.stack.imgur.com/CC9L8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CC9L8.png" alt=" The error " /></a></p>