Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 4ffe0ba

Browse files
committed
Add the new object internal type.
Allow the TypeGenerator to recognize this new PHP7.2 internal type. # Conflicts: # src/Generator/TypeGenerator.php
1 parent 2899c17 commit 4ffe0ba

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Generator/TypeGenerator.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,17 @@ final class TypeGenerator implements GeneratorInterface
3333
*
3434
* @link http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
3535
*/
36-
private static $internalPhpTypes = ['void', 'int', 'float', 'string', 'bool', 'array', 'callable', 'iterable'];
36+
private static $internalPhpTypes = [
37+
'void',
38+
'int',
39+
'float',
40+
'string',
41+
'bool',
42+
'array',
43+
'callable',
44+
'iterable',
45+
'object'
46+
];
3747

3848
/**
3949
* @var string a regex pattern to match valid class names or types

0 commit comments

Comments
 (0)