<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/reserved.attributes.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'class.returntypewillchange.php',
    1 => 'ReturnTypeWillChange',
    2 => 'The ReturnTypeWillChange attribute',
  ),
  'up' => 
  array (
    0 => 'reserved.attributes.php',
    1 => 'Predefined Attributes',
  ),
  'prev' => 
  array (
    0 => 'override.construct.php',
    1 => 'Override::__construct',
  ),
  'next' => 
  array (
    0 => 'returntypewillchange.construct.php',
    1 => 'ReturnTypeWillChange::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/predefined/attributes/returntypewillchange.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.returntypewillchange.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.returntypewillchange" class="reference">
 <h1 class="title">The ReturnTypeWillChange attribute</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 8 &gt;= 8.1.0)</p>

  <div class="section" id="returntypewillchange.intro">
   <h2 class="title">Introduzione</h2>
   <p class="para">
    Most non-final internal methods now require overriding methods to declare
    a compatible return type, otherwise a deprecated notice is emitted during
    inheritance validation.
    In case the return type cannot be declared for an overriding method due to
    PHP cross-version compatibility concerns,
    a <code class="code">#[\ReturnTypeWillChange]</code> attribute can be added to silence
    the deprecation notice.
   </p>
  </div>

  <div class="section" id="returntypewillchange.synopsis">
   <h2 class="title">Sommario della classe</h2>

   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="attribute"><a href="class.attribute.php">#[\Attribute]</a> </span><br>
     <span class="modifier">final</span>
     <span class="modifier">class</span> <strong class="classname"><strong class="classname">ReturnTypeWillChange</strong></strong>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Metodi */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="returntypewillchange.construct.php" class="methodname">__construct</a></span>()</div>

   }</div>

  </div>

  <div class="section" id="returntypewillchange.seealso">
   <h2 class="title">Vedere anche:</h2>
   <p class="para"><a href="language.attributes.php" class="link">Attributes overview</a></p>
  </div>

 </div>

 


 


<h2>Indice dei contenuti</h2><ul class="chunklist chunklist_reference"><li><a href="returntypewillchange.construct.php">ReturnTypeWillChange::__construct</a> — Construct a new ReturnTypeWillChange attribute instance</li></ul>
</div>
<?php manual_footer($setup); ?>