Skip to content

Commit ee25158

Browse files
committed
added 'never' built-in type
1 parent bb8ce95 commit ee25158

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PhpGenerator/PhpNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class PhpNamespace
2929
private const KEYWORDS = [
3030
'string' => 1, 'int' => 1, 'float' => 1, 'bool' => 1, 'array' => 1, 'object' => 1,
3131
'callable' => 1, 'iterable' => 1, 'void' => 1, 'self' => 1, 'parent' => 1, 'static' => 1,
32-
'mixed' => 1, 'null' => 1, 'false' => 1,
32+
'mixed' => 1, 'null' => 1, 'false' => 1, 'never' => 1,
3333
];
3434

3535
/** @var string */

src/PhpGenerator/Type.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Type
2525
CALLABLE = 'callable',
2626
ITERABLE = 'iterable',
2727
VOID = 'void',
28+
NEVER = 'never',
2829
MIXED = 'mixed',
2930
FALSE = 'false',
3031
NULL = 'null',

0 commit comments

Comments
 (0)