<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.types.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'language.types.never.php',
    1 => 'Never',
    2 => 'Never',
  ),
  'up' => 
  array (
    0 => 'language.types.php',
    1 => 'Типи',
  ),
  'prev' => 
  array (
    0 => 'language.types.void.php',
    1 => 'Void',
  ),
  'next' => 
  array (
    0 => 'language.types.relative-class-types.php',
    1 => 'Relative class types',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/types/never.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.types.never" class="sect1">
 <h2 class="title">Never</h2>

 <p class="para">
  <span class="type"><a href="language.types.never.php" class="type never">never</a></span> is a return-only type indicating the function
  does not terminate. This means that it either calls <span class="function"><a href="function.exit.php" class="function">exit()</a></span>,
  throws an exception, or is an infinite loop.
  Therefore, it cannot be part of a
  <a href="language.types.type-system.php#language.types.type-system.composite.union" class="link">union type</a>
  declaration. Available as of PHP 8.1.0.
 </p>
 <p class="para">
  <span class="type"><a href="language.types.never.php" class="type never">never</a></span> is, in type theory parlance, the bottom type.
  Meaning it is the subtype of every other type and can replace any other
  return type during inheritance.
 </p>

</div><?php manual_footer($setup); ?>